it-novum / openITCOCKPIT

openITCOCKPIT is an Open Source system monitoring tool built for different monitoring engines like Nagios, Naemon and Prometheus.
https://openitcockpit.io/
GNU General Public License v3.0
263 stars 50 forks source link

"Service template groups" Permissions not working #1695

Closed kbilev closed 1 month ago

kbilev commented 1 month ago

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:

  1. User with all Servicetemplategroups permissions on a container
  2. create a new service template group
  3. you can not delete or modify the group

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

nook24 commented 1 month ago

Tracked by ITC-3355