Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 79c219ee0e38b0b0a389ce2dba7a84b761d875a1
https://github.com/tribe29/checkmk/commit/79c219ee0e38b0b0a389ce2dba7a84b76…
Author: Tom Baerwinkel <tom.baerwinkel(a)tribe29.com>
Date: 2019-12-19 (Thu, 19 Dec 2019)
Changed paths:
M cmk/gui/config.py
M tests/unit/cmk/gui/test_gui_config.py
Log Message:
-----------
Use self.role_ids instead of user.role_ids in LoggedInUser
This way we're sure to always use the roles of the user object
itself. Since the cmk.gui.config.user object is usually set to
the current user this did not produce any bugs. We would only
end up with wrong permissions if the used LoggedInUser object
is different from the cmk.gui.config.user object.
CMK-3464
Change-Id: I7b72a6a1c2f31e02f5961387a70b5c515b2fe8e1