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

@ -328,13 +328,12 @@ class boardView extends board
));
// update the document view count (if the document is not secret)
if(!$oDocument->isSecret() || $oDocument->isGranted())
if($oDocument->isAccessible())
{
$oDocument->updateReadedCount();
}
// disappear the document if it is secret
if($oDocument->isSecret() && !$oDocument->isGranted())
else
{
$oDocument->add('content',lang('thisissecret'));
}