12-07-2015 05:01 AM
if (user.isAdmin) {
…
}
<!– Custom Execute Script Action –>
<config evaluator="string-compare" condition="isAdmin"> <!– just guessing! –>
<config evaluator="string-compare" condition="DocLibActions">
<actionGroups>
<actionGroup id="folder-browse">
<action index="980" id="org_sharextras_execute-script" />
</actionGroup>
…etc…
</config>
</config>
12-07-2015 08:18 AM
<module>
<id>Hide action for non-admin</id>
<auto-deploy>true</auto-deploy>
<evaluator type="group.module.evaluator">
<params>
<groups>GROUP_ALFRESCO_ADMINISTRATORS</groups>
<groupRelation>AND</groupRelation>
<negate>false</negate>
</params>
</evaluator>
<configurations>
<config evaluator="string-compare" condition="DocLibActions">
<action id="org_sharextras_execute-script">
<evaluator>evaluator.doclib.action.disableAction</evaluator>
</action>
</config>
</configurations>
</module>
12-07-2015 09:21 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.