AnsweredAssumed Answered

Disable Document Actions based on Role

Question asked by rheimburger on May 22, 2013
Latest reply on May 22, 2013 by rheimburger
Alfresco Version:  4.2d

This may be a repost, accept my apology if it is.  We are trying to disable document actions if the role is Consumer.  I found a recipe the modify the share-config-custom.xml:

http://injustfiveminutes.wordpress.com/2013/05/08/removing-view-in-browser-action-in-alfresco-4-2/

There should be a way to add an evaluator to disable any of the document actions based on role, e.g. Consumer, siteConsumer but I have not found it yet.

This is what I have tried so far but it is disabling for all users.


<!– Download document –>
<action id="document-download" type="link" label="actions.document.download">
     <param name="href">{downloadUrl}</param>
     <evaluator>evaluator.doclib.action.isSiteConsumer</evaluator>
     <evaluator>evaluator.doclib.action.disableAction</evaluator>
</action>

Outcomes