UserController: Apply permission config/application/users/show

refs #8826
This commit is contained in:
Johannes Meyer 2015-05-27 10:23:59 +02:00
parent 32c1a844b5
commit 2cbea558ef
1 changed files with 2 additions and 0 deletions

View File

@ -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'));