diff --git a/application/controllers/UserController.php b/application/controllers/UserController.php index cdf2b77da..5a5b3c754 100644 --- a/application/controllers/UserController.php +++ b/application/controllers/UserController.php @@ -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; } /**