Werk #15005: Fix possible KeyError on service graphs view

Component User interface
Title Fix possible KeyError on service graphs view
Date Dec 13, 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.0p18 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

If a user had no permission "Services - Service (service)" and tried to open the view "Service graphs" (service_graphs) an error like "KeyError (service)" occurred.

To the list of all Werks