Module: check_mk
Branch: master
Commit: cb036f8bc13bb64c8d286c4786e1be3df4e1b40b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cb036f8bc13bb6…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Dec 9 19:51:48 2013 +0100
Multisite can now set rotation view permissions for NagVis
When using multisite to controll the users permissions within NagVis,
the read access to rotations could not be controlled via Multisite.
The permission for this has been added now. This change only applies
when used with the newest NagVis version (currently daily build).
---
.werks/308 | 11 +++++++++++
ChangeLog | 1 +
web/plugins/wato/nagvis_auth.py | 7 +++++++
3 files changed, 19 insertions(+)
diff --git a/.werks/308 b/.werks/308
new file mode 100644
index 0000000..77c9ca3
--- /dev/null
+++ b/.werks/308
@@ -0,0 +1,11 @@
+Title: Multisite can now set rotation view permissions for NagVis
+Level: 1
+Component: wato
+Version: 1.2.3i8
+Date: 1386614980
+Class: feature
+
+When using multisite to controll the users permissions within NagVis,
+the read access to rotations could not be controlled via Multisite.
+The permission for this has been added now. This change only applies
+when used with the newest NagVis version (currently daily build).
diff --git a/ChangeLog b/ChangeLog
index 4072a85..2a36ae5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,7 @@
* 0307 FIX: Increased performance of multisite GUI with a large userbase...
WATO:
+ * 0308 Multisite can now set rotation view permissions for NagVis...
* 0057 FIX: Fix exception in WATO host editor on custom tag without topic...
Reporting & Availability:
diff --git a/web/plugins/wato/nagvis_auth.py b/web/plugins/wato/nagvis_auth.py
index e2bbb18..d3d66cc 100644
--- a/web/plugins/wato/nagvis_auth.py
+++ b/web/plugins/wato/nagvis_auth.py
@@ -43,6 +43,13 @@ config.declare_permission(
)
config.declare_permission(
+ 'nagvis.Rotation_view_*',
+ _('Use all map rotations'),
+ _('Grants read access to all rotations.'),
+ [ 'guest' ]
+)
+
+config.declare_permission(
'nagvis.Map_edit_*',
_('Edit all maps'),
_('Grants modify access to all maps.'),