Module: check_mk
Branch: master
Commit: 84c1e3210699a580b6e3404796b6607a4095abe9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=84c1e3210699a5…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Fri Jun 9 15:02:23 2017 +0200
4818 FIX Fixed "No Data" in Tactical Overview if missing permissions to see
failed notifications
Guest do not have permissions to see failed notifications per default which
lead into an empty tactical overview. This bug is in Check_MK since June 2016.
Change-Id: I404e7d14a2e71435cd888f97137b5a0c5fd3d9f7
---
.werks/4818 | 11 +++++++++++
web/htdocs/notifications.py | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/4818 b/.werks/4818
new file mode 100644
index 0000000..f14d617
--- /dev/null
+++ b/.werks/4818
@@ -0,0 +1,11 @@
+Title: Fixed "No Data" in Tactical Overview if missing permissions to see
failed notifications
+Level: 2
+Component: multisite
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1497013081
+Class: fix
+
+Guest do not have permissions to see failed notifications per default which
+lead into an empty tactical overview. This bug is in Check_MK since June 2016.
diff --git a/web/htdocs/notifications.py b/web/htdocs/notifications.py
index 3457238..6733ec7 100644
--- a/web/htdocs/notifications.py
+++ b/web/htdocs/notifications.py
@@ -95,7 +95,7 @@ def load_failed_notifications(before=None, after=None, stat_only=False,
extra_he
config.user.may("general.see_failed_notifications_24h")
if not may_see_notifications:
- return None
+ return [0]
query_filters = [
"class = 3",