Skip to content

Commit

Permalink
Merge branch 'hotfix/1.8.39'
Browse files Browse the repository at this point in the history
  • Loading branch information
bnu committed May 31, 2017
2 parents 509be68 + ecc58eb commit 20d479e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions modules/file/file.model.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,13 @@ function getFiles($upload_target_srl, $columnList = array(), $sortIndex = 'file_
}

// 모듈 권한 확인
$grant = $oModuleModel->getGrant($oModuleModel->getModuleInfoByModuleSrl($oDocument->get('module_srl')), $logged_info);
if(!$grant->access)
if($oDocument->isExists())
{
return $this->stop('msg_not_permitted');
$grant = $oModuleModel->getGrant($oModuleModel->getModuleInfoByModuleSrl($oDocument->get('module_srl')), $logged_info);
if(!$grant->access)
{
return $this->stop('msg_not_permitted');
}
}

$args = new stdClass();
Expand Down

0 comments on commit 20d479e

Please sign in to comment.