Load user roles and populate to view
This commit is contained in:
parent
f872a95cc5
commit
c9921b386c
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue