Describe the bug
A non-root user with full permissons on the "Servicetemplategroups" can only create new Service Template Groups, but afterwards not change or delete them.
To Reproduce
Steps to reproduce the behavior:
User with all Servicetemplategroups permissions on a container
create a new service template group
you can not delete or modify the group
Expected behavior
You should have the given rights
Versions
openITCOCKPIT Server Version: 4.8.0
Additional context
The bug seems to be in src/Controller/ServicetemplategroupsController.php Line 91.
It seems to work as expected when changing the line from
$servicetemplategroup['allow_edit'] = $this->isWritableContainer($servicetemplategroup['Servicetemplategroup']['container_id']);
to
$servicetemplategroup['allow_edit'] = $this->isWritableContainer($servicetemplategroup['container_id']);
Describe the bug A non-root user with full permissons on the "Servicetemplategroups" can only create new Service Template Groups, but afterwards not change or delete them.
To Reproduce Steps to reproduce the behavior:
Expected behavior You should have the given rights
Versions
Additional context The bug seems to be in
src/Controller/ServicetemplategroupsController.php
Line 91. It seems to work as expected when changing the line from$servicetemplategroup['allow_edit'] = $this->isWritableContainer($servicetemplategroup['Servicetemplategroup']['container_id']);
to$servicetemplategroup['allow_edit'] = $this->isWritableContainer($servicetemplategroup['container_id']);