Hi All,
I could hide Start Workflow for consumer by adding following in share-config-custom.xml
<config evaluator="string-compare" condition="DocLibActions">
<actions>
<action id="document-assign-workflow" type="javascript" label="actions.document.assign-workflow">
<param name="function">onActionAssignWorkflow</param>
<permissions>
<permission allow="true">Write</permission>
</permissions>
</action></actions>
</config>
Now I want to hide it for Collaborator also. How can I achieve that?
Thanks,
Yash
You need to create a Share evaluator. Probably the "isSiteManager" works for you.
<config evaluator="string-compare" condition="DocLibActions">
<actions>
<action id="document-assign-workflow" type="javascript" label="actions.document.assign-workflow">
<param name="function">onActionAssignWorkflow</param>
<permissions>
<permission allow="true">Write</permission>
</permissions>
<evaluator>evaluator.doclib.action.isSiteManager</evaluator>
</action>
</actions>
</config>
Hi Angel Borroy,
Thanks for your inputs.
I also tried with
<evaluator>evaluator.doclib.action.isSiteManager</evaluator>
It won't work for me. It will hide the button even for Admin also outside the site.
How can I create custom evaluator to get this?
Thanks
Another approach is to develop your own evaluator.
Take a look at this blog post: Soft29 blog: Alfresco Extension Module evaluators
This is how I do it.
I include the configuration section shown in the original question, without conditions, but I only apply the module using a group evaluator, including a condition for the site role I want it to be applied.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.