mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +02:00
Roles: Include permissions and restrictions of unloaded modules too
Because we now have module permissions it makes sense to allow an admin to configure permissions and restrictions from a module before allowing access to it. refs #9644
This commit is contained in:
parent
8358e9165c
commit
a51f0ad65e
@ -71,8 +71,8 @@ class RoleForm extends ConfigForm
|
||||
$moduleName,
|
||||
$modulePermission
|
||||
);
|
||||
if ($mm->hasEnabled($moduleName)) {
|
||||
$module = $mm->getModule($moduleName);
|
||||
|
||||
$module = $mm->getModule($moduleName, false);
|
||||
foreach ($module->getProvidedPermissions() as $permission) {
|
||||
/** @var object $permission */
|
||||
$this->providedPermissions[$permission->name] = $permission->description
|
||||
@ -95,7 +95,6 @@ class RoleForm extends ConfigForm
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
|
Loading…
x
Reference in New Issue
Block a user