UserController: Apply permission config/application/users/edit
refs #8826
This commit is contained in:
parent
88ba718ffb
commit
01b790cf18
|
@ -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…
Reference in New Issue