mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
UserController: Apply permission config/application/users/remove
refs #8826
This commit is contained in:
parent
01b790cf18
commit
0e37aad6ce
application
@ -198,6 +198,7 @@ class UserController extends AuthBackendController
|
||||
*/
|
||||
public function removeAction()
|
||||
{
|
||||
$this->assertPermission('config/application/users/remove');
|
||||
$userName = $this->params->getRequired('user');
|
||||
$backend = $this->getUserBackend($this->params->getRequired('backend'), 'Icinga\Data\Reducible');
|
||||
|
||||
|
@ -22,8 +22,8 @@ if ($backend === null) {
|
||||
echo $this->translate('No backend found which is able to list users') . '</div>';
|
||||
return;
|
||||
} else {
|
||||
$reducible = $backend instanceof Reducible;
|
||||
$extensible = $this->hasPermission('config/application/users/add') && $backend instanceof Extensible;
|
||||
$reducible = $this->hasPermission('config/application/users/remove') && $backend instanceof Reducible;
|
||||
}
|
||||
|
||||
if (count($users) > 0): ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user