Hi Jon,

Have a look at the prepareContextMenu method in GenericDataAdminTreeConfig. The 
only permission related check done there is whether the current user has read 
or write permissions to the data workspace. In the default configuration the 
demo-project-editors role has write permission. An editor in that role can use 
all context menu commands. If you change the role's permission to read, most 
commands get disabled. This is the level of granularity you get out of the box.

For customization, see a similar question "Disabling Activate incl. subnodes" 
on the user list.

--Antti



On May 11, 2011, at 12:31 PM, Jon RINGWOOD PSE 55500 wrote:

> Does anyone know if it is possible to restrict access by role to the command 
> buttons in the Data module? I would like to prevent any editors from 
> selecting the Activate all, Deactivate all, Import data and Delete all 
> buttons. Tried denying access to the modules/data/commands/data/deleteAll 
> node in the ACL but doesn't appear to do anything.
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
> This email and any other accompanying document (s) contain information from 
> Kent Police, which is confidential or privileged.  The information is 
> intended to be for the exclusive use of the individual(s) or bodies to whom 
> it is addressed. The content including any subsequent replies could be 
> disclosable if relating to a criminal investigation or civil proceedings. If 
> you are not the intended recipient, be aware that any disclosure, copying, 
> distribution or use of the contents of this information is prohibited. If you 
> have received this email in error, please notify us immediately by contacting 
> the sender or telephoning 01622 690690.



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to