mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
- 새로 추가된 클래스 문법 사용시 standalone 속성 기본값은 true가 아닌 auto로 지정
- standalone 속성의 의미는 아래와 같음
- true: 항상 접근 허용 (기존 방식으로 선언한 액션의 기본값)
- false: mid가 소속 모듈과 일치하거나, admin 모듈인 경우에만 접근 허용
- auto: module 또는 mid가 소속 모듈과 일치하거나, admin 모듈인 경우에만 접근 허용
(즉, false와 비슷하지만 exec_json 함수 등에서 module+act로 호출하는 경우에는
mid가 없더라도 module만 일치하면 호출할 수 있도록 허용하여 개발 편의를 높임)
- 단, global_route 속성이 있는 경우 standalone 속성 기본값은 true임
(전역 짧은주소는 mid 없이 호출될 수밖에 없으므로)
33 lines
1.7 KiB
XML
33 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<module>
|
|
<grants>
|
|
<grant name="view" default="guest">
|
|
<title xml:lang="ko">열람</title>
|
|
<title xml:lang="en">View</title>
|
|
</grant>
|
|
</grants>
|
|
<actions>
|
|
<action name="dispTestView" type="view" permission="view" standalone="false" index="true">
|
|
<route route="$document_srl:int" priority="100" />
|
|
<route route="$document_srl:int/comment/$comment_srl:int" priority="70" />
|
|
<route route="$document_srl:int/tag/$tag:word" priority="50" />
|
|
</action>
|
|
<action name="dispTestWrite" type="view" permission="view" method="GET" standalone="false" meta-noindex="true" route="write" global_route="true" />
|
|
<action name="procTestSubmitData" type="controller" standalone="false" check-csrf="false" ruleset="submitData" />
|
|
<action name="dispTestAdminIndex" type="view" admin_index="true" menu_name="test" menu_index="true" />
|
|
<action name="procTestAdminSubmitData" type="controller" permission="manager" check_var="module_srl" check_type="thisisatest" method="GET|POST" />
|
|
<action name="dispTestStandalone1" class="Namespace\ClassName" route="test/standalone1" method="GET" />
|
|
<action name="dispTestStandalone2" class="Namespace\ClassName" route="test/standalone2" method="GET" standalone="false" />
|
|
<action name="dispTestStandalone3" type="view" route="test/standalone3" method="GET" global-route="true" />
|
|
<action name="dispTestErrorHandler" type="view" standalone="true" error-handlers="404" />
|
|
</actions>
|
|
<menus>
|
|
<menu name="test" type="all">
|
|
<title xml:lang="ko">테스트 메뉴</title>
|
|
<title xml:lang="en">Test Menu</title>
|
|
</menu>
|
|
</menus>
|
|
<permissions>
|
|
<permission action="procTestSubmitData" target="view" />
|
|
</permissions>
|
|
</module>
|