관리자 페이지는 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

@ -322,10 +322,10 @@ class ModuleObject extends Object
// get permission types(guest, member, manager, root) of the currently requested action
$permission = $xml_info->permission->{$this->act};
// check manager if a permission in module.xml otherwise action if no permission
if(!$permission && substr_count($this->act, 'Admin'))
// If admin action, default permission
if(!$permission && stripos($this->act, 'admin') !== false)
{
$permission = 'manager';
$permission = 'root';
}
// Check permissions