Module: check_mk
Branch: master
Commit: 1823bb8f13da9542a77c2ab47799154e21e84c99
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1823bb8f13da95…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jun 29 09:24:16 2017 +0200
4920 FIX Fixed error when user is not permitted to open a folder for reading
Change-Id: I57d7b52e81b1cbc022c555f2bdf14837bcace5e7
---
.werks/4920 | 10 ++++++++++
web/htdocs/wato.py | 5 ++---
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/.werks/4920 b/.werks/4920
new file mode 100644
index 0000000..37d8baa
--- /dev/null
+++ b/.werks/4920
@@ -0,0 +1,10 @@
+Title: Fixed error when user is not permitted to open a folder for reading
+Level: 1
+Component: wato
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1498721037
+Class: fix
+
+
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 8694d2a..d9c7d7f 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -543,9 +543,8 @@ def mode_folder(phase):
folder.show_breadcrump()
if not folder.may("read"):
- html.message(html.render_img(folder.reason_why_may_not("read"),
- class_="authicon",
- src="images/icon_autherr.png"))
+ html.message(html.render_img("images/icon_autherr.png",
class_="authicon")
+ + " " + folder.reason_why_may_not("read"))
folder.show_locking_information()
show_subfolders_of(folder)