Branch: refs/heads/2.1.0
Home:
https://github.com/Checkmk/checkmk
Commit: e7c1e54439d810f64c502747c1e4fc61b6c36c17
https://github.com/Checkmk/checkmk/commit/e7c1e54439d810f64c502747c1e4fc61b…
Author: Christoph Rauch <christoph.rauch(a)checkmk.com>
Date: 2023-10-17 (Tue, 17 Oct 2023)
Changed paths:
A .werks/15099
M cmk/gui/plugins/openapi/endpoints/host_config.py
Log Message:
-----------
15099 FIX crash when calling bulk-delete via the REST API
Previously, when doing a bulk_delete operation via the REST API,
an exception could occur under certain conditions, most notably
one where the DCD (Dynamic Configuration Daemon) is configured
to automatically delete hosts without piggyback data.
If the error occured, in the logs these lines are occuring:
PermissionError: Required permissions not declared for this endpoint.
Endpoint: <Endpoint cmk.gui.plugins.openapi.endpoints.host_config:bulk_delete>
Permission: general.see_all
Used permission: {'wato.all_folders', 'general.see_all',
'wato.manage_hosts'}
Declared: AllPerm([{wato.manage_hosts}, {wato.all_folders}?)
This werk fixes this problem.
Change-Id: I2b712fc7f96645e53d8045472544ab097ee0db24