mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
UserController: Apply permission config/application/users/edit
refs #8826
This commit is contained in:
parent
88ba718ffb
commit
01b790cf18
application
@ -175,6 +175,7 @@ class UserController extends AuthBackendController
|
||||
*/
|
||||
public function editAction()
|
||||
{
|
||||
$this->assertPermission('config/application/users/edit');
|
||||
$userName = $this->params->getRequired('user');
|
||||
$backend = $this->getUserBackend($this->params->getRequired('backend'), 'Icinga\Data\Updatable');
|
||||
|
||||
|
@ -4,7 +4,7 @@ use Icinga\Data\Updatable;
|
||||
use Icinga\Data\Reducible;
|
||||
|
||||
$editLink = null;
|
||||
if ($backend instanceof Updatable) {
|
||||
if ($this->hasPermission('config/application/users/edit') && $backend instanceof Updatable) {
|
||||
$editLink = $this->qlink(
|
||||
null,
|
||||
'user/edit',
|
||||
|
Loading…
x
Reference in New Issue
Block a user