Module: check_mk
Branch: master
Commit: 8c9bdf29851872c9bfa9d7b6e4bd59366b3ecd9a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8c9bdf29851872…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Mon Jan 13 12:04:02 2014 +0100
FIX Availability button is now visible for users without the right to edit views
---
.werks/117 | 9 +++++++++
ChangeLog | 1 +
web/htdocs/views.py | 4 ++--
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/.werks/117 b/.werks/117
new file mode 100644
index 0000000..d949a7a
--- /dev/null
+++ b/.werks/117
@@ -0,0 +1,9 @@
+Title: Availability button is now visible for users without the right to edit views
+Level: 1
+Component: multisite
+Class: fix
+State: unknown
+Version: 1.2.5i1
+Date: 1389610935
+
+
diff --git a/ChangeLog b/ChangeLog
index a95acf1..bc964f8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -122,6 +122,7 @@
* 0423 FIX: Users are not logged out anymore during changing their own passwords...
* 0424 FIX: Improved error handling in case of incorrect auth config in distributed
WATO environments
* 0425 FIX: Fix login loop bug in distributed environments with different auth
secrets
+ * 0117 FIX: Availability button is now visible for users without the right to edit
views
WATO:
* 0308 Multisite can now set rotation view permissions for NagVis...
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 20d8591..8047650 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -1843,8 +1843,8 @@ def show_context_links(thisview, active_filters, show_filters,
display_options,
(thisview["owner"], thisview["name"], backurl)
html.context_button(_("Edit View"), url, "edit",
id="edit", bestof=config.context_buttons_to_show)
- if show_availability:
- html.context_button(_("Availability"),
html.makeuri([("mode", "availability")]), "availability")
+ if show_availability:
+ html.context_button(_("Availability"), html.makeuri([("mode",
"availability")]), "availability")
if 'B' in display_options:
execute_hooks('buttons-end')