mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-08 11:33:55 +09:00
관리자 페이지는 root를 기본 퍼미션으로...
This commit is contained in:
parent
a6d45dedae
commit
e03d8e7333
2 changed files with 5 additions and 5 deletions
|
|
@ -697,7 +697,7 @@ class ModuleHandler extends Handler
|
||||||
if($kind == 'admin')
|
if($kind == 'admin')
|
||||||
{
|
{
|
||||||
$grant = $oModuleModel->getGrant($this->module_info, $logged_info);
|
$grant = $oModuleModel->getGrant($this->module_info, $logged_info);
|
||||||
if(!$grant->manager)
|
if(!$grant->root)
|
||||||
{
|
{
|
||||||
self::_setInputErrorToContext();
|
self::_setInputErrorToContext();
|
||||||
$this->error = 'admin.msg_is_not_administrator';
|
$this->error = 'admin.msg_is_not_administrator';
|
||||||
|
|
@ -709,7 +709,7 @@ class ModuleHandler extends Handler
|
||||||
}
|
}
|
||||||
else
|
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();
|
self::_setInputErrorToContext();
|
||||||
$this->error = 'admin.msg_is_not_administrator';
|
$this->error = 'admin.msg_is_not_administrator';
|
||||||
|
|
|
||||||
|
|
@ -322,10 +322,10 @@ class ModuleObject extends Object
|
||||||
// get permission types(guest, member, manager, root) of the currently requested action
|
// get permission types(guest, member, manager, root) of the currently requested action
|
||||||
$permission = $xml_info->permission->{$this->act};
|
$permission = $xml_info->permission->{$this->act};
|
||||||
|
|
||||||
// check manager if a permission in module.xml otherwise action if no permission
|
// If admin action, default permission
|
||||||
if(!$permission && substr_count($this->act, 'Admin'))
|
if(!$permission && stripos($this->act, 'admin') !== false)
|
||||||
{
|
{
|
||||||
$permission = 'manager';
|
$permission = 'root';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check permissions
|
// Check permissions
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue