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);
|
||||
$admissionLoader = new AdmissionLoader();
|
||||
$user->setPermissions($admissionLoader->getPermissions($user));
|
||||
$user->setRestrictions($admissionLoader->getRestrictions($user));
|
||||
list($permissions, $restrictions) = $admissionLoader->getPermissionsAndRestrictions($user);
|
||||
$user->setPermissions($permissions);
|
||||
$user->setRestrictions($restrictions);
|
||||
$this->user = $user;
|
||||
if ($persist) {
|
||||
$this->persistCurrentUser();
|
||||
|
|
Loading…
Reference in New Issue