Module: check_mk
Branch: master
Commit: d9fc6f8b40db77203ad75573999c21c1818b12dc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d9fc6f8b40db77…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Feb 10 16:03:48 2012 +0100
Showing inventory icon only when permitted
---
web/htdocs/wato.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index af72f16..3fc2047 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -1204,7 +1204,8 @@ def show_hosts(folder):
html.write("<td class=buttons>")
html.icon_button(edit_url, _("Edit the properties of this host"),
"edit")
- html.icon_button(services_url, _("Edit the services of this host, do an
inventory"), "services")
+ if check_host_permissions(hostname, False) == True:
+ html.icon_button(services_url, _("Edit the services of this host, do an
inventory"), "services")
if config.may("wato.manage_hosts"):
html.icon_button(clone_url, _("Create a clone of this host"),
"insert")
html.icon_button(delete_url, _("Delete this host"),
"delete")