All pastes #911536 Raw Edit

Something

public text v1 · immutable
·published 2008-02-20 19:48 UTC
rendered paste body
Index: ZenModel/skins/zenmodel/userCommandsMacros.pt
===================================================================
--- ZenModel/skins/zenmodel/userCommandsMacros.pt	(revision 8398)
+++ ZenModel/skins/zenmodel/userCommandsMacros.pt	(working copy)
@@ -89,9 +89,13 @@
 </tr>
 
 
+<!--
 <tal:block metal:define-macro="runCommandMenu"
     tal:condition="python:here.isManager() and here.meta_type in
     ['DeviceClass','Device','Location','DeviceGroup','System','Software']">
+-->
+<tal:block metal:define-macro="runCommandMenu" 
+           tal:condition="python:here.dmd.ZenUsers.getUser().has_role('Change Device') and here.meta_type in ['DeviceClass','Device','Location','DeviceGroup','System','Software']">
 <li tal:define="commandIds here/getUserCommandIds">
 <form name="command_proxy" method="post"
 tal:define="mypath here/getPrimaryUrlPath"