Branch: refs/heads/2.0.0
Home:
https://github.com/tribe29/checkmk
Commit: e03d63f3dbcf942b1bae7de8147a59b43b08e25f
https://github.com/tribe29/checkmk/commit/e03d63f3dbcf942b1bae7de8147a59b43…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2021-08-06 (Fri, 06 Aug 2021)
Changed paths:
M cmk/gui/watolib/hosts_and_folders.py
M cmk/gui/watolib/utils.py
Log Message:
-----------
Prepare for contact group check fix
* Add type hints to better understand the involved data
* Extract _get_cgconf_from_attributes helper. This is needed for the
following fix.
Change-Id: I0df4cbab0bb764d4f3defd4049351d6c24965698
Commit: 38ca232662e22a083c3b51c4e911038373d6a365
https://github.com/tribe29/checkmk/commit/38ca232662e22a083c3b51c4e91103837…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2021-08-06 (Fri, 06 Aug 2021)
Changed paths:
M cmk/gui/watolib/hosts_and_folders.py
Log Message:
-----------
Cleanup must_be_in_contactgroups
* Mark helper function to be module local
* Extract the tuple > dict conversion
* Add type hints and only hand over the contact groups
Change-Id: If7849fbcba7e9c4d79e5b53737f8f43d2ef59cee
Commit: fcb51bf853e4d0edd445307d1aba6bb1dc4fb17b
https://github.com/tribe29/checkmk/commit/fcb51bf853e4d0edd445307d1aba6bb1d…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2021-08-06 (Fri, 06 Aug 2021)
Changed paths:
A .werks/12851
M cmk/gui/watolib/hosts_and_folders.py
Log Message:
-----------
12851 FIX Folder/Host permissions: Users could add groups but not remove them
afterwards
Users with the "User" role which are able to manage a folder in "Hosts
&
folders" can add and remove permissions of contact groups on a folder. These
users should only be able to add / remove contact groups they are a member of.
However, in previous releases it was possible to add one group to the permitted
groups of a folder he is not a member of. But when trying to remove the group,
this was denied because the user is not a member of this group.
The logic has now been changed to provide the user a consistent behaviour: In
the moment a user tries to add OR remove a contact group, it is verified that
the user is a member of that group. The user can now really only add OR remove
groups he is a member of.
Groups which are permitted on this folder and are not modified by the user are
not relevant in this situation.
SUP-4915
Change-Id: I9ffde74cad3d21067bd5e44cc2d6cd62da3e2832
Compare:
https://github.com/tribe29/checkmk/compare/224e8e36bd27...fcb51bf853e4