Module: check_mk
Branch: master
Commit: e5adbfa6f652ebd85816768bcf79f4f584cb2d79
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e5adbfa6f652eb…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Feb 23 08:47:49 2017 +0100
4393 FIX The permissions on events were not always handled correctly
When rulesets have "contact group" permissions configured and set the
rulset config to have precedence, this was not handled correctly, making
users don't see event that they should see.
Change-Id: Ifa69ffa008b2c4502b2745525f0a7d4b3d7edf5e
---
.werks/4393 | 13 +++++++++++++
web/plugins/sidebar/shipped.py | 3 +++
2 files changed, 16 insertions(+)
diff --git a/.werks/4393 b/.werks/4393
new file mode 100644
index 0000000..f3143b8
--- /dev/null
+++ b/.werks/4393
@@ -0,0 +1,13 @@
+Title: The permissions on events were not always handled correctly
+Level: 1
+Component: ec
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1487835927
+
+When rulesets have "contact group" permissions configured and set the
+rulset config to have precedence, this was not handled correctly, making
+users don't see event that they should see.
diff --git a/web/plugins/sidebar/shipped.py b/web/plugins/sidebar/shipped.py
index d685795..58d15b2 100644
--- a/web/plugins/sidebar/shipped.py
+++ b/web/plugins/sidebar/shipped.py
@@ -635,9 +635,12 @@ def get_tactical_overview_data(extra_filter_headers):
extra_headers=extra_filter_headers)
try:
+ sites.live().set_auth_domain("ec")
event_data = sites.live().query_summed_stats(event_query)
except livestatus.MKLivestatusNotFoundError:
event_data = [0, 0, 0]
+ finally:
+ sites.live().set_auth_domain("read")
except livestatus.MKLivestatusNotFoundError:
return None, None, None, None