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…
Reference in New Issue