잘못된 지정 수정

This commit is contained in:
conory 2017-12-12 14:30:27 +09:00
parent f8ac11bda6
commit 48c818d7de

View file

@ -214,7 +214,8 @@ class documentItem extends BaseObject
return true;
}
if ($this->get('status') === $this->getConfigStatus('public') || $this->get('status') === $this->getConfigStatus('temp'))
$status_list = getModel('document')->getStatusList();
if ($this->get('status') === $status_list['public'] || $this->get('status') === $status_list['temp'])
{
$this->setAccessible();
return true;
@ -302,7 +303,7 @@ class documentItem extends BaseObject
function isSecret()
{
return $this->get('status') == $this->getConfigStatus('secret');
return $this->get('status') == getModel('document')->getConfigStatus('secret');
}
function isNotice()