mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@120 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f0edc7f054
commit
ff5c11d4d8
6 changed files with 8 additions and 8 deletions
|
|
@ -85,15 +85,15 @@
|
|||
}
|
||||
} else {
|
||||
switch($default) {
|
||||
case 'guest' :
|
||||
$grant->{$grant_name} = true;
|
||||
break;
|
||||
case 'member' :
|
||||
if($is_logged) $grant->{$grant_name} = true;
|
||||
break;
|
||||
case 'root' :
|
||||
if($grant->is_admin) $grant->{$grant_name} = true;
|
||||
break;
|
||||
default :
|
||||
$grant->{$grant_name} = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<module default_action="dispAdminIndex" manage_action="">
|
||||
<module default_action="dispAdminIndex" management_action="">
|
||||
<actions>
|
||||
<action name="dispAdminIndex" type="view" grant="root" />
|
||||
<actions>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<module default_action="dispContent" manage_action="dispAdminContent">
|
||||
<module default_action="dispContent" management_action="dispAdminContent">
|
||||
<grants>
|
||||
<grant name="list" default="guest">
|
||||
<title xml:lang="ko">목록</title>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<module version="0.1" default_action="viewIntroduce" >
|
||||
<module version="0.1" default_action="viewIntroduce" management_action="" >
|
||||
<actions>
|
||||
<action name="viewIntroduce" type="view" />
|
||||
<action name="viewDBInfoForm" type="view" />
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<module default_action="dispContent" manage_action="">
|
||||
<module default_action="dispContent" management_action="">
|
||||
<actions>
|
||||
<action name="dispContent" type="view" grant="guest" />
|
||||
</actions>
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
if(!count($xml_obj->module)) return;
|
||||
|
||||
$output->default_action = $xml_obj->module->attrs->default_action; ///< 별도의 action이 지정되지 않으면 호출될 action
|
||||
$output->manage_action = $xml_obj->module->attrs->manage_action; ///< 관리자용으로 사용될 기본 action
|
||||
$output->management_action = $xml_obj->module->attrs->management_action; ///< 관리자용으로 사용될 기본 action
|
||||
|
||||
$grants = $xml_obj->module->grants->grant; ///< 권한 정보 (없는 경우도 있음)
|
||||
$actions = $xml_obj->module->actions->action; ///< action list (필수)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue