mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Fix incorrect defaults shown in module grant screen
This commit is contained in:
parent
fcf679e750
commit
64efb20f2b
1 changed files with 9 additions and 0 deletions
|
|
@ -171,9 +171,18 @@ class ModuleAdminModel extends Module
|
||||||
$grant_list->manager->title = lang('grant_manager');
|
$grant_list->manager->title = lang('grant_manager');
|
||||||
$grant_list->manager->default = 'manager';
|
$grant_list->manager->default = 'manager';
|
||||||
Context::set('grant_list', $grant_list);
|
Context::set('grant_list', $grant_list);
|
||||||
|
|
||||||
// Get a permission group granted to the current module
|
// Get a permission group granted to the current module
|
||||||
$selected_group = array();
|
$selected_group = array();
|
||||||
$default_grant = array();
|
$default_grant = array();
|
||||||
|
foreach ($grant_list as $key => $val)
|
||||||
|
{
|
||||||
|
if (!empty($val->default))
|
||||||
|
{
|
||||||
|
$default_grant[$key] = $val->default;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$args = new stdClass();
|
$args = new stdClass();
|
||||||
$args->module_srl = $module_srl;
|
$args->module_srl = $module_srl;
|
||||||
$output = executeQueryArray('module.getModuleGrants', $args);
|
$output = executeQueryArray('module.getModuleGrants', $args);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue