As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
I want to put permissions for someones users.
Can i remove the download button for someones users??
Thanks for the help!!!!!
Hi Kevin
To remove download button from specific type of user, first you need to add following code in share-config-custom.xml to remove download action for all users except Site Manager (by providing false, it will be removed for all users)
<config evaluator="string-compare" condition="DocLibActions"> <actions> <!-- Download document --> <action id="document-download" type="link" label="actions.document.download"> <param name="href">{downloadUrl}</param> <evaluator>evaluator.doclib.action.downloadBrowser</evaluator> <evaluator negate="false">evaluator.doclib.action.isSiteCollaborator</evaluator> <!-- Only Site Manager can download it --> </action></actions> </config>
<config evaluator="string-compare" condition="DocLibActions"> <actions> <!-- Download document --> <action id="document-download" type="link" label="actions.document.download"> <param name="href">{downloadUrl}</param> <evaluator>evaluator.doclib.action.downloadBrowser</evaluator> <evaluator negate="false">evaluator.doclib.action.isSiteCollaborator</evaluator> <!-- Only Site Manager can download it --> </action>
</actions> </config>
And also, you will need to override node-header.get.js found in <<ALFRESCO_HOME>>\tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\node-details. You can put model.showDownload = "false" for a specific user condition you want to remove this action.
To get specific person object, use this : getPerson | Alfresco Documentation
To get permission for specific file, use this : getPermissions | Alfresco Documentation
Let me know if you still face any issue.
Thanks,
Kalpesh
ContCentric
I have put model.showdownload=false but I have no changes