lib: Use AdmissionLoader::applyRoles() in Auth

refs #10887
This commit is contained in:
Eric Lippmann 2016-03-24 15:30:30 +01:00
parent 1aa42bdaf6
commit f1f4cdc3cb

View File

@ -160,9 +160,7 @@ class Auth
} }
$user->setGroups($groups); $user->setGroups($groups);
$admissionLoader = new AdmissionLoader(); $admissionLoader = new AdmissionLoader();
list($permissions, $restrictions) = $admissionLoader->getPermissionsAndRestrictions($user); $admissionLoader->applyRoles($user);
$user->setPermissions($permissions);
$user->setRestrictions($restrictions);
$this->user = $user; $this->user = $user;
if ($persist) { if ($persist) {
$this->persistCurrentUser(); $this->persistCurrentUser();