Werk #14824 · Oct 21, 22
Custom extensions: Potentially incompatible change in GUI code
Incompatible change. Existing setups may behave differently after upgrading. Review the details below before updating.
This werk only affects developers of custom extensions to Checkmk.
The variable cmk.gui.config.builtin_role_ids, which specifies IDs for built-in user roles, has been split into two new variables:
- cmk.gui.config.default_authorized_builtin_role_ids: IDs of built-in user roles which are by default authorized to use dashlets, sidebar snapins etc., unless explicitly specified differently (at the moment admin, user, guest).
- cmk.gui.config.default_unauthorized_builtin_role_ids: IDs of built-in user roles which are by default not authorized to use dashlets, sidebar snapins etc., unless explicitly specified differently.
Note that builtin_role_ids still exists (still containing all built-in role IDs), however, most developer will likely want to use cmk.gui.config.default_authorized_builtin_role_ids in the future to avoid unwanted authorizations of new user roles added to default_unauthorized_builtin_role_ids.
Alternatively, you may explicitly declare the roles you want to permit by default using ["admin", "user", "guest"].
Details
- Class:
- New Features
- Level:
- Trivial
- Component:
- Setup (WATO)
- Versions:
- 2.2.0b1CommunityProUltimateUltimate + MT