Title: [opsview] [10017] Show the 'edit host' link determined by CONFIGUREHOSTS only.
Revision
10017
Author
pknight
Date
2012-09-10 15:48:00 +0100 (Mon, 10 Sep 2012)

Log Message

Show the 'edit host' link determined by CONFIGUREHOSTS only.

Modified Paths


Modified: trunk/opsview-web/root/state/service/menu
===================================================================
--- trunk/opsview-web/root/state/service/menu	2012-09-10 14:47:39 UTC (rev 10016)
+++ trunk/opsview-web/root/state/service/menu	2012-09-10 14:48:00 UTC (rev 10017)
@@ -33,17 +33,17 @@
 
 info_status(object_dbic); "<br/>";
 
-IF c.user.has_access("CONFIGUREVIEW");
+IF c.user.has_access("CONFIGUREHOSTS");
   opsview_host = object.host_object_id.configuration_host_object;
-
   IF opsview_host;
 %]
-<a href="" c.uri_for("/admin/host/edit", opsview_host.id ).path_query | html %]"
- alt="[% c.loc("ui.menu.label.editHostConfiguration") | html %]">[% c.loc("ui.menu.label.editHostConfiguration") | html %]</a><br />
+    <a href="" c.uri_for("/admin/host/edit", opsview_host.id ).path_query | html %]" alt="[% c.loc("ui.menu.label.editHostConfiguration") | html %]">[% c.loc("ui.menu.label.editHostConfiguration") | html %]</a><br />
 [%
   ELSE;
     c.loc("ui.message.hostNotInConfiguration");
-  END; %]
-<a href="" c.uri_for("/admin/servicecheck", { name => object.name } ).path_query | html %]"
- alt="[% c.loc("ui.menu.label.editServiceCheckConfiguration") | html %]">[% c.loc("ui.menu.label.editServiceCheckConfiguration") | html %]</a><br />
+  END;
+END;
+
+IF c.user.has_access("CONFIGUREVIEW") %]
+  <a href="" c.uri_for("/admin/servicecheck", { name => object.name } ).path_query | html %]" alt="[% c.loc("ui.menu.label.editServiceCheckConfiguration") | html %]">[% c.loc("ui.menu.label.editServiceCheckConfiguration") | html %]</a><br />
 [% END %]

_______________________________________________
Opsview-checkins mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-checkins

Reply via email to