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…
Reference in New Issue