Load user roles and populate to view

This commit is contained in:
Philipp Dorschner 2019-09-25 10:39:46 +02:00 committed by Johannes Meyer
parent f872a95cc5
commit c9921b386c
1 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,7 @@ namespace Icinga\Controllers;
use Exception;
use Icinga\Application\Logger;
use Icinga\Authentication\AdmissionLoader;
use Icinga\Authentication\User\DomainAwareInterface;
use Icinga\Data\DataArray\ArrayDatasource;
use Icinga\Exception\ConfigurationError;
@ -165,6 +166,10 @@ class UserController extends AuthBackendController
));
$this->view->removeForm = $removeForm;
}
$admissionLoader = new AdmissionLoader();
$admissionLoader->applyRoles($userObj);
$this->view->userObj = $userObj;
}
/**