AnsweredAssumed Answered

Evaluator for doclib Action to check a group-membership

Question asked by webdesigner on Jul 11, 2012
Latest reply on Aug 9, 2012 by douglascrp
Hello,

how to display an action in the docLib for every document,
according to the membership in one specific group.

I couldn't find anything in the documentation, how to achieve that.

Here the registration of my action in share-config-custom.xml:

<config evaluator="string-compare" condition="DocLibActions">
<actions>
<action id="disable-record-creation" type="javascript" icon="document-reject" label="actions.rm.disable-record-creation">
<param name="function">onActionDisableRecordCreation</param>
<permissions>
<permission allow="true">Write</permission>
</permissions>   
</action>
<actions>
</config>

How to add an evaluator to check the group membership of the current user? Without modification of the standard Alfresco files (such us documentLibrary-actions.js etc.) to avoid version-upgrade conflicts?

A code snippet with the main points, would be really great.

Thanks in advance
Vitali

Outcomes