diff options
Diffstat (limited to 'ui/app/controllers/CControllerUserroleEditGeneral.php')
-rw-r--r-- | ui/app/controllers/CControllerUserroleEditGeneral.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ui/app/controllers/CControllerUserroleEditGeneral.php b/ui/app/controllers/CControllerUserroleEditGeneral.php index 5abbc45d05d..e5a5a9479f1 100644 --- a/ui/app/controllers/CControllerUserroleEditGeneral.php +++ b/ui/app/controllers/CControllerUserroleEditGeneral.php @@ -97,10 +97,8 @@ abstract class CControllerUserroleEditGeneral extends CController { */ private function getModuleSectionRules(): array { $db_modules = API::Module()->get([ - 'output' => ['moduleid'], - 'filter' => [ - 'status' => MODULE_STATUS_ENABLED - ] + 'output' => [], + 'preservekeys' => true ]); $modules = $this->getInput('modules', []); @@ -113,7 +111,7 @@ abstract class CControllerUserroleEditGeneral extends CController { 'status' => $modules[$moduleid] ]; }, - array_column($db_modules, 'moduleid') + array_keys($db_modules) ), 'modules.default_access' => $this->getInput('modules_default_access') ]; |