Module: check_mk
Branch: master
Commit: 653d0494ee3da537edb8dc99eb6a7edf941a92fe
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=653d0494ee3da5…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Aug 31 15:55:41 2017 +0200
5139 FIX Fixed baked agent download page when user had no global bakery permissions
A normal user also required the permission </i>"Register all hosts &
download all monitoring agents"</i>
to be able to download one of his hosts.
Additionally no agent download button was shown in the edit host dialog when the
permission
<i>Register Host & download monitoring agents of your hosts</i> waas set.
Change-Id: Iada3dab7d1e61a79206d12e6e922b5d819eacd77
---
.werks/5139 | 16 ++++++++++++++++
web/htdocs/wato.py | 2 +-
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/.werks/5139 b/.werks/5139
new file mode 100644
index 0000000..e919c49
--- /dev/null
+++ b/.werks/5139
@@ -0,0 +1,16 @@
+Title: Fixed baked agent download page when user had no global bakery permissions
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+Edition: cee
+State: unknown
+Version: 1.5.0i1
+Date: 1504187380
+
+A normal user also required the permission </i>"Register all hosts &
download all monitoring agents"</i>
+to be able to download one of his hosts.
+
+
+Additionally no agent download button was shown in the edit host dialog when the
permission
+<i>Register Host & download monitoring agents of your hosts</i> waas
set.
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index a2b0c91..08ffc9c 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -1289,7 +1289,7 @@ def mode_edit_host(phase, new, is_cluster):
html.context_button(_("Services"),
folder_preserving_link([("mode", "inventory"),
("host", hostname)]), "services")
- if config.user.may('wato.agents'):
+ if config.user.may('wato.download_agents'):
html.context_button(_("Monitoring Agent"),
folder_preserving_link([("mode", "agent_of_host"),
("host", hostname)]), "agents")
if config.user.may('wato.rulesets'):