Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: cad11d78c21961d397530894b258daf108c53241
https://github.com/tribe29/checkmk/commit/cad11d78c21961d397530894b258daf10…
Author: Benedikt Seidl <benedikt.seidl(a)tribe29.com>
Date: 2022-10-26 (Wed, 26 Oct 2022)
Changed paths:
M cmk/gui/plugins/openapi/restful_objects/decorators.py
M cmk/gui/plugins/openapi/restful_objects/endpoint_registry.py
M tests/unit/cmk/gui/plugins/openapi/test_endpoint.py
Log Message:
-----------
RESTAPI: _used_permission is cleared on request
Before this change, the _used_permissions set was only set once when
adding the Endpoint, so the comparison of required and tested
permissions might be broken for certain endpoints.
Now it is cleared before each request and should find more permission
violations.
Change-Id: I3d33e3991a40cf57764d82c5f9da3a2aec530cca