mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
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 Exception;
|
||||||
use Icinga\Application\Logger;
|
use Icinga\Application\Logger;
|
||||||
|
use Icinga\Authentication\AdmissionLoader;
|
||||||
use Icinga\Authentication\User\DomainAwareInterface;
|
use Icinga\Authentication\User\DomainAwareInterface;
|
||||||
use Icinga\Data\DataArray\ArrayDatasource;
|
use Icinga\Data\DataArray\ArrayDatasource;
|
||||||
use Icinga\Exception\ConfigurationError;
|
use Icinga\Exception\ConfigurationError;
|
||||||
@ -165,6 +166,10 @@ class UserController extends AuthBackendController
|
|||||||
));
|
));
|
||||||
$this->view->removeForm = $removeForm;
|
$this->view->removeForm = $removeForm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$admissionLoader = new AdmissionLoader();
|
||||||
|
$admissionLoader->applyRoles($userObj);
|
||||||
|
$this->view->userObj = $userObj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user