mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
fixed #130 사이트맵에서 접근 권한 설정 시 그룹 선택 저장이 안 되는 문제 해결 (패치제공 @sejin7940)
This commit is contained in:
parent
285797e777
commit
d7e6309c76
2 changed files with 489 additions and 484 deletions
|
|
@ -1529,14 +1529,13 @@ class menuAdminController extends menu
|
|||
}
|
||||
else
|
||||
{
|
||||
if(is_array($exposure))
|
||||
{
|
||||
$args->group_srls = implode(',', $exposure);
|
||||
}
|
||||
else if($exposure && in_array($exposure,array('-1','-3')))
|
||||
$exposure = explode(',', $exposure);
|
||||
if(in_array($exposure, array('-1','-3')))
|
||||
{
|
||||
$args->group_srls = $exposure;
|
||||
}
|
||||
|
||||
$args->group_srls = implode(',', $exposure);
|
||||
}
|
||||
|
||||
$output = executeQuery('menu.updateMenuItem', $args);
|
||||
|
|
@ -1557,6 +1556,7 @@ class menuAdminController extends menu
|
|||
|
||||
$grantList = $xml_info->grant;
|
||||
if(!$grantList) $grantList = new stdClass;
|
||||
|
||||
$grantList->access = new stdClass();
|
||||
$grantList->access->default = 'guest';
|
||||
$grantList->manager = new stdClass();
|
||||
|
|
@ -1586,6 +1586,7 @@ class menuAdminController extends menu
|
|||
}
|
||||
$grant->{$group_srls} = array();
|
||||
}
|
||||
|
||||
if(count($grant))
|
||||
{
|
||||
$oModuleController = getController('module');
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue