Security: Load user permissions and restrictions from roles.ini

refs #5647
This commit is contained in:
Eric Lippmann 2014-11-19 15:11:14 +01:00
parent b01a9a65e0
commit bed11ebb60
1 changed files with 3 additions and 2 deletions

View File

@ -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();