Module: check_mk
Branch: master
Commit: e857e0bad0892b2e6accfc940975dbdd2fee43b8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e857e0bad0892b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Feb 8 13:06:07 2018 +0100
5722 FIX View/dashboard list: Show link to view only for not hidden and published views
Change-Id: I14566875f827aa8c46b0b7cd87d3655194cf1d01
---
.werks/5722 | 10 ++++++++++
web/htdocs/visuals.py | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/5722 b/.werks/5722
new file mode 100644
index 0000000..d620f59
--- /dev/null
+++ b/.werks/5722
@@ -0,0 +1,10 @@
+Title: View/dashboard list: Show link to view only for not hidden and published views
+Level: 1
+Component: multisite
+Compatible: compat
+Edition: cre
+Version: 1.5.0i3
+Date: 1518091485
+Class: fix
+
+
diff --git a/web/htdocs/visuals.py b/web/htdocs/visuals.py
index 4059fef..587cd52 100644
--- a/web/htdocs/visuals.py
+++ b/web/htdocs/visuals.py
@@ -452,7 +452,7 @@ def page_list(what, title, visuals, custom_columns = None,
# Title
table.cell(_('Title'))
title = _u(visual['title'])
- if not visual["hidden"]:
+ if not visual["hidden"] and (owner == config.user.id or
visual["public"]):
html.a(title, href="%s.py?%s=%s" % (what_s,
visual_types[what]['ident_attr'], visual_name))
else:
html.write_text(title)