Module: check_mk
Branch: master
Commit: 46e4245ea4b63a683a864b9ce1ecdd8b03520b94
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=46e4245ea4b63a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Oct 9 14:38:32 2017 +0200
5391 FIX Removed CEE specific broken link from host edit page (CRE)
Change-Id: Ib19eab784875d9f37ac98c532bb66a54f84f9178
---
.werks/5391 | 10 ++++++++++
web/htdocs/wato.py | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/5391 b/.werks/5391
new file mode 100644
index 0000000..eef9f92
--- /dev/null
+++ b/.werks/5391
@@ -0,0 +1,10 @@
+Title: Removed CEE specific broken link from host edit page (CRE)
+Level: 1
+Component: wato
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1507552702
+Class: fix
+
+
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 90f19a9..fda2f9c 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.download_agents'):
+ if has_agent_bakery() and 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'):