관리자 페이지는 root를 기본 퍼미션으로...

This commit is contained in:
conory 2017-03-21 17:49:06 +09:00
parent a6d45dedae
commit e03d8e7333
2 changed files with 5 additions and 5 deletions

View file

@ -697,7 +697,7 @@ class ModuleHandler extends Handler
if($kind == 'admin')
{
$grant = $oModuleModel->getGrant($this->module_info, $logged_info);
if(!$grant->manager)
if(!$grant->root)
{
self::_setInputErrorToContext();
$this->error = 'admin.msg_is_not_administrator';
@ -709,7 +709,7 @@ class ModuleHandler extends Handler
}
else
{
if(!$grant->is_admin && $this->module != $this->orig_module->module && $xml_info->permission->{$this->act} != 'manager')
if(!$grant->is_admin && $this->module != $this->orig_module->module && $xml_info->permission->{$this->act} != 'root')
{
self::_setInputErrorToContext();
$this->error = 'admin.msg_is_not_administrator';