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:
Eric Lippmann 2015-07-24 16:13:08 +02:00
parent 8358e9165c
commit a51f0ad65e

View File

@ -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}