GroupController: Apply permission config/application/groups/edit

refs #8826
This commit is contained in:
Johannes Meyer 2015-05-27 10:32:41 +02:00
parent fd2ecf395d
commit b58cd4747c
2 changed files with 2 additions and 1 deletions

View File

@ -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');

View File

@ -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',