isAccessible()로 통일

This commit is contained in:
conory 2017-12-12 13:23:45 +09:00
parent 81986c40a9
commit f8ac11bda6
10 changed files with 16 additions and 22 deletions

View file

@ -43,7 +43,7 @@ class fileModel extends file
if(!$oDocument->isExists())
{
$oComment = $oCommentModel->getComment($upload_target_srl);
if($oComment->isExists() && $oComment->isSecret() && !$oComment->isGranted())
if($oComment->isExists() && !$oComment->isAccessible())
{
return $this->setError('msg_not_permitted');
}
@ -52,7 +52,7 @@ class fileModel extends file
}
// document 권한 확인
if($oDocument->isExists() && $oDocument->isSecret() && !$oDocument->isGranted())
if($oDocument->isExists() && !$oDocument->isAccessible())
{
return $this->setError('msg_not_permitted');
}