mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-07 05:54:25 +02:00
UserController: Apply permission config/application/users/show
refs #8826
This commit is contained in:
parent
32c1a844b5
commit
2cbea558ef
@ -29,6 +29,7 @@ class UserController extends AuthBackendController
|
||||
*/
|
||||
public function listAction()
|
||||
{
|
||||
$this->assertPermission('config/application/users/show');
|
||||
$backendNames = array_map(
|
||||
function ($b) { return $b->getName(); },
|
||||
$this->loadUserBackends('Icinga\Data\Selectable')
|
||||
@ -86,6 +87,7 @@ class UserController extends AuthBackendController
|
||||
*/
|
||||
public function showAction()
|
||||
{
|
||||
$this->assertPermission('config/application/users/show');
|
||||
$userName = $this->params->getRequired('user');
|
||||
$backend = $this->getUserBackend($this->params->getRequired('backend'));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user