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:
ovclas 2012-10-16 05:51:59 +00:00
parent 5fddec3f6d
commit 2baa9f74a1
2 changed files with 14 additions and 1 deletions

View file

@ -152,6 +152,19 @@
}
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
$oMemberModel = &getModel('member');
$oModuleAdminModel = &getAdminModel('module');

View file

@ -208,7 +208,7 @@
}
if(isset($selectedGroup->{$key}))
{
$grantList->{$key}->group = $selectedGroup->{$key};
$grantList->{$key}->group_srls = $selectedGroup->{$key};
}
}
}