mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 12:02:24 +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 {
|
} else {
|
||||||
switch($default) {
|
switch($default) {
|
||||||
case 'guest' :
|
|
||||||
$grant->{$grant_name} = true;
|
|
||||||
break;
|
|
||||||
case 'member' :
|
case 'member' :
|
||||||
if($is_logged) $grant->{$grant_name} = true;
|
if($is_logged) $grant->{$grant_name} = true;
|
||||||
break;
|
break;
|
||||||
case 'root' :
|
case 'root' :
|
||||||
if($grant->is_admin) $grant->{$grant_name} = true;
|
if($grant->is_admin) $grant->{$grant_name} = true;
|
||||||
break;
|
break;
|
||||||
|
default :
|
||||||
|
$grant->{$grant_name} = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<module default_action="dispAdminIndex" manage_action="">
|
<module default_action="dispAdminIndex" management_action="">
|
||||||
<actions>
|
<actions>
|
||||||
<action name="dispAdminIndex" type="view" grant="root" />
|
<action name="dispAdminIndex" type="view" grant="root" />
|
||||||
<actions>
|
<actions>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<module default_action="dispContent" manage_action="dispAdminContent">
|
<module default_action="dispContent" management_action="dispAdminContent">
|
||||||
<grants>
|
<grants>
|
||||||
<grant name="list" default="guest">
|
<grant name="list" default="guest">
|
||||||
<title xml:lang="ko">목록</title>
|
<title xml:lang="ko">목록</title>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<module version="0.1" default_action="viewIntroduce" >
|
<module version="0.1" default_action="viewIntroduce" management_action="" >
|
||||||
<actions>
|
<actions>
|
||||||
<action name="viewIntroduce" type="view" />
|
<action name="viewIntroduce" type="view" />
|
||||||
<action name="viewDBInfoForm" type="view" />
|
<action name="viewDBInfoForm" type="view" />
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<module default_action="dispContent" manage_action="">
|
<module default_action="dispContent" management_action="">
|
||||||
<actions>
|
<actions>
|
||||||
<action name="dispContent" type="view" grant="guest" />
|
<action name="dispContent" type="view" grant="guest" />
|
||||||
</actions>
|
</actions>
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
if(!count($xml_obj->module)) return;
|
if(!count($xml_obj->module)) return;
|
||||||
|
|
||||||
$output->default_action = $xml_obj->module->attrs->default_action; ///< 별도의 action이 지정되지 않으면 호출될 action
|
$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; ///< 권한 정보 (없는 경우도 있음)
|
$grants = $xml_obj->module->grants->grant; ///< 권한 정보 (없는 경우도 있음)
|
||||||
$actions = $xml_obj->module->actions->action; ///< action list (필수)
|
$actions = $xml_obj->module->actions->action; ///< action list (필수)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue