mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-25 18:59:04 +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,
|
$moduleName,
|
||||||
$modulePermission
|
$modulePermission
|
||||||
);
|
);
|
||||||
if ($mm->hasEnabled($moduleName)) {
|
|
||||||
$module = $mm->getModule($moduleName);
|
$module = $mm->getModule($moduleName, false);
|
||||||
foreach ($module->getProvidedPermissions() as $permission) {
|
foreach ($module->getProvidedPermissions() as $permission) {
|
||||||
/** @var object $permission */
|
/** @var object $permission */
|
||||||
$this->providedPermissions[$permission->name] = $permission->description
|
$this->providedPermissions[$permission->name] = $permission->description
|
||||||
@ -95,7 +95,6 @@ class RoleForm extends ConfigForm
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user