mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 23:32:54 +09:00
isAccessible()로 통일
This commit is contained in:
parent
81986c40a9
commit
f8ac11bda6
10 changed files with 16 additions and 22 deletions
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue