Thanks Antti. Bit disappointing that we can't disable any of the command buttons, our plan to allow publishers into the data module will obviously not work now as it would be far too dangerous allowing access with those delete and deactivate commands available. Shame as it would have been perfect for us.
>>> On 11/05/11 at 12:02, Antti Hietala <[email protected]> wrote: Hi Jon, Have a look at the prepareContextMenu method in GenericDataAdminTreeConfig ( http://svn.magnolia-cms.com/view/community/modules/magnolia-module-data/trunk/src/main/java/info/magnolia/module/data/trees/GenericDataAdminTreeConfig.java ). 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 ( http://old.nabble.com/disabling-%22Activate-incl.-subnodes%22-td7878194.html )" 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]> ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
