Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: e6160160d2de0048b5c7c20a44f59b1ac5948f3f
https://github.com/tribe29/checkmk/commit/e6160160d2de0048b5c7c20a44f59b1ac…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2021-11-05 (Fri, 05 Nov 2021)
Changed paths:
M cmk/gui/notifications.py
M cmk/gui/watolib/user_scripts.py
M cmk/gui/watolib/users.py
M tests/unit/cmk/gui/test_gui_config.py
Log Message:
-----------
Cleanup dynamic notification plugin permission registration
The notification plugin permissions need to be declared dynamically to
automatically have permissions for new installed plugins.
We have a generic approach for dealing with such dynamic permissions
(`cmk.gui.permissions.declare_dynamic_permissions`) - using this now.
The `load_plugin` functions are required to only perform tasks which
are independent of user local state (config, plugins, ...).
The dynamic permission registration is now decoupled from the
`load_plugins` function by just registering a handler function with
`declare_dynamic_permissions`.
We also moved the registration logic to a better place.
Change-Id: Id586189efe4efa6ac5987a23a5f73f74e644c599
Commit: aa428c3c90d461bd6eda6a34ad19b214402ea21b
https://github.com/tribe29/checkmk/commit/aa428c3c90d461bd6eda6a34ad19b2144…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2021-11-05 (Fri, 05 Nov 2021)
Changed paths:
M cmk/gui/views.py
Log Message:
-----------
Purge another module global state
Change-Id: Iaafe0e5fb481a3888969bea0152169ae0535a592
Compare:
https://github.com/tribe29/checkmk/compare/fefd45d69a39...aa428c3c90d4