mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-07 14:04:27 +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()
|
public function listAction()
|
||||||
{
|
{
|
||||||
|
$this->assertPermission('config/application/users/show');
|
||||||
$backendNames = array_map(
|
$backendNames = array_map(
|
||||||
function ($b) { return $b->getName(); },
|
function ($b) { return $b->getName(); },
|
||||||
$this->loadUserBackends('Icinga\Data\Selectable')
|
$this->loadUserBackends('Icinga\Data\Selectable')
|
||||||
@ -86,6 +87,7 @@ class UserController extends AuthBackendController
|
|||||||
*/
|
*/
|
||||||
public function showAction()
|
public function showAction()
|
||||||
{
|
{
|
||||||
|
$this->assertPermission('config/application/users/show');
|
||||||
$userName = $this->params->getRequired('user');
|
$userName = $this->params->getRequired('user');
|
||||||
$backend = $this->getUserBackend($this->params->getRequired('backend'));
|
$backend = $this->getUserBackend($this->params->getRequired('backend'));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user