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

Log Message

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

Modified Paths


Modified: trunk/opsview-web/root/state/host/menu
===================================================================
--- trunk/opsview-web/root/state/host/menu	2012-09-10 14:43:18 UTC (rev 10015)
+++ trunk/opsview-web/root/state/host/menu	2012-09-10 14:47:39 UTC (rev 10016)
@@ -49,11 +49,11 @@
 [% IF opsview_host.use_rancid && c.model("OpsviewDB::Applicationplugin").search( name => "rancid" ).count ; %]
 <a href="" c.uri_for("/websvn/filedetails.php", { repname => "rancid", path => "/" _ object.ip } ).path_query | html %]" alt="[% c.loc("ui.menu.host.label.rancid") | html %]">[% c.loc("ui.menu.host.label.rancid") | html %]</a><br/>
 [% END %]
-[% 
+[%
 
-IF opsview_host; info_status(opsview_host, object.id); "<br/>"; END; 
+IF opsview_host; info_status(opsview_host, object.id); "<br/>"; END;
 
-IF c.user.has_access("CONFIGUREVIEW") %]
+IF c.user.has_access("CONFIGUREHOSTS") %]
   [% IF opsview_host %]
     <a href="" c.uri_for("/admin/host/edit", object.opsview_host_id).path_query | html %]" alt="[% c.loc("ui.menu.label.editHostConfiguration") | html %]">[% c.loc("ui.menu.label.editHostConfiguration") | html %]</a>
   [% ELSE;

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

Reply via email to