Werk #13672: Fix possible KeyError on ruleset page with predifined conditions

Component Setup
Title Fix possible KeyError on ruleset page with predifined conditions
Date Mar 14, 2022
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0b2 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p22 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

If a user views a ruleset page with rules containing predefined conditions the user is not permitted for, a KeyError occurs.

The ruleset page will now show correctly such rules. If a user with no permission for the used predefined condition edits such rule, the predefined condition field will show a corresponding message that the user has no permission for the choosen predefined condition.

To the list of all Werks