mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-05 13:04:27 +02:00
Security: Load user permissions and restrictions from roles.ini
refs #5647
This commit is contained in:
parent
b01a9a65e0
commit
bed11ebb60
@ -107,8 +107,9 @@ class Manager
|
|||||||
}
|
}
|
||||||
$user->setGroups($groups);
|
$user->setGroups($groups);
|
||||||
$admissionLoader = new AdmissionLoader();
|
$admissionLoader = new AdmissionLoader();
|
||||||
$user->setPermissions($admissionLoader->getPermissions($user));
|
list($permissions, $restrictions) = $admissionLoader->getPermissionsAndRestrictions($user);
|
||||||
$user->setRestrictions($admissionLoader->getRestrictions($user));
|
$user->setPermissions($permissions);
|
||||||
|
$user->setRestrictions($restrictions);
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
if ($persist) {
|
if ($persist) {
|
||||||
$this->persistCurrentUser();
|
$this->persistCurrentUser();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user