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()
|
||||
{
|
||||
$this->assertPermission('config/application/groups/edit');
|
||||
$groupName = $this->params->getRequired('group');
|
||||
$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;
|
||||
|
||||
$editLink = null;
|
||||
if ($backend instanceof Updatable) {
|
||||
if ($this->hasPermission('config/application/groups/edit') && $backend instanceof Updatable) {
|
||||
$editLink = $this->qlink(
|
||||
null,
|
||||
'group/edit',
|
||||
|
|
Loading…
Reference in New Issue