mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
GroupController: Apply permission config/application/groups/edit
refs #8826
This commit is contained in:
parent
fd2ecf395d
commit
b58cd4747c
@ -181,6 +181,7 @@ class GroupController extends AuthBackendController
|
|||||||
*/
|
*/
|
||||||
public function editAction()
|
public function editAction()
|
||||||
{
|
{
|
||||||
|
$this->assertPermission('config/application/groups/edit');
|
||||||
$groupName = $this->params->getRequired('group');
|
$groupName = $this->params->getRequired('group');
|
||||||
$backend = $this->getUserGroupBackend($this->params->getRequired('backend'), 'Icinga\Data\Updatable');
|
$backend = $this->getUserGroupBackend($this->params->getRequired('backend'), 'Icinga\Data\Updatable');
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ use Icinga\Data\Updatable;
|
|||||||
$extensible = $this->hasPermission('config/application/groups/add') && $backend instanceof Extensible;
|
$extensible = $this->hasPermission('config/application/groups/add') && $backend instanceof Extensible;
|
||||||
|
|
||||||
$editLink = null;
|
$editLink = null;
|
||||||
if ($backend instanceof Updatable) {
|
if ($this->hasPermission('config/application/groups/edit') && $backend instanceof Updatable) {
|
||||||
$editLink = $this->qlink(
|
$editLink = $this->qlink(
|
||||||
null,
|
null,
|
||||||
'group/edit',
|
'group/edit',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user