mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 20:12:14 +09:00
issue 2363 modify api protocol (same format)
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11730 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5fddec3f6d
commit
2baa9f74a1
2 changed files with 14 additions and 1 deletions
|
|
@ -152,6 +152,19 @@
|
||||||
}
|
}
|
||||||
else $menuItem->moduleType = 'url';
|
else $menuItem->moduleType = 'url';
|
||||||
|
|
||||||
|
// grant setting
|
||||||
|
if(is_array($menuItem->group_srls))
|
||||||
|
{
|
||||||
|
if($menuItem->group_srls[0] == -1)
|
||||||
|
{
|
||||||
|
$menuItem->grant = 'member';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$menuItem->grant = 'group';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// get groups
|
// get groups
|
||||||
$oMemberModel = &getModel('member');
|
$oMemberModel = &getModel('member');
|
||||||
$oModuleAdminModel = &getAdminModel('module');
|
$oModuleAdminModel = &getAdminModel('module');
|
||||||
|
|
|
||||||
|
|
@ -208,7 +208,7 @@
|
||||||
}
|
}
|
||||||
if(isset($selectedGroup->{$key}))
|
if(isset($selectedGroup->{$key}))
|
||||||
{
|
{
|
||||||
$grantList->{$key}->group = $selectedGroup->{$key};
|
$grantList->{$key}->group_srls = $selectedGroup->{$key};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue