TECHZEN Zenoss User Community ARCHIVE  

Hide Configuration Properties men item for ZenUser role

Subject: Hide Configuration Properties men item for ZenUser role
Author: [Not Specified]
Posted: 2015-02-19 09:56

Hello,

following the directions of ZenPacks.skills1st.MenuExamples-2.0 I was able to create in my instance of zenoss (4.2.5) a new menu item in the left-hand menu for all devices and assign it permissions : ("Manage DMD",) so with admin account i see the new item while with a ZenUser accout no.

Now i would change the permissions of "Configuration Properties" from permissions.view to "Manage DMD".

i try to modify DeviceClass.py directly :

factory_type_information = (
{
'id' : 'DeviceClass',
'meta_type' : 'DeviceClass',
'description' : """Base class for all devices""",
'icon' : 'DeviceClass_icon.gif',
'product' : 'ZenModel',
'factory' : 'manage_addDeviceClass',
'immediate_view' : 'deviceOrganizerStatus',
'actions' :
(
{ 'name' : 'Classes'
, 'action' : 'deviceOrganizerStatus'
, 'permissions' : ( permissions.view, )
},
{ 'name' : 'Events'
, 'action' : 'viewEvents'
, 'permissions' : ( permissions.view, )
},
{ 'name' : 'Configuration Properties'
, 'action' : 'zPropertyEdit'
, 'permissions' : ('Manage DMD',)
},
{ 'name' : 'Templates'
, 'action' : 'perfConfig'
, 'permissions' : ('Manage DMD',)
},
)
},
)

but with ZenUser account i see in any case the Configuration Properties item.

i also try to modify Device.py set to "Manage DMD" the permissions of 'Software' item and it works (ZenUser account don't see the item)

There is a way to solve my problem any help would be appreciated.

Thanks.



< Previous
Where is the best AIX SNMP support?
  Next
ZenPacks.MJW.BarracudaMonitor
>