mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
1. layout에 기존의 blog모듈의 xe_blog 레이아웃 스킨을 적용
2. 레이아웃 편집/수정시 모듈의 관리권한을 그대로 적용되도록 수정 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3556 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
da08ff2262
commit
bfbf140d7c
60 changed files with 542 additions and 10 deletions
|
|
@ -66,16 +66,27 @@
|
|||
|
||||
// act의 값에 따라서 관리 권한 체크
|
||||
switch($args->act) {
|
||||
case 'procLayoutAdminUpdate' :
|
||||
case 'dispLayoutAdminPreview' :
|
||||
case 'procLayoutAdminCodeReset' :
|
||||
case 'procLayoutAdminCodeUpdate' :
|
||||
// 레이아웃 정보에 할당된 srl이 없으면 패스
|
||||
if(!$args->layout_srl) return false;
|
||||
|
||||
// 모듈중 레이아웃이 해당 srl에 연결될 것이 있는지 확인
|
||||
$oModuleModel = &getModel('module');
|
||||
$module_info = $oModuleModel->getModuleInfoByModuleSrl($args->layout_srl);
|
||||
if(!$module_info) return false;
|
||||
$module_list = $oModuleModel->getModulesInfoByLayout($args->layout_srl);
|
||||
$module_count = count($module_list);
|
||||
|
||||
if($oModuleModel->isModuleAdmin($module_info, $logged_info)) return true;
|
||||
$is_granted = false;
|
||||
for($i=0;$i<$module_count;$i++) {
|
||||
$module_info = $module_list[$i];
|
||||
if($oModuleModel->isModuleAdmin($module_list[$i],$logged_info)) {
|
||||
$is_granted = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return $is_granted;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue