- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2019 02:28 PM
Hello,
I'am new with alfresco and i need to disable Download action for a consumer role (file and folder).
Someone help me please.
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2019 12:31 PM
Consumer can not edit any resources so you can put that condition on that action to restrict download action.
Your file should have configuration like this.
<alfresco-config>
<config evaluator="string-compare" condition="DocLibActions">
<actions>
<action id="document-download" type="link"
label="actions.document.download">
<param name="href">{downloadUrl}</param>
<permissions>
<permission allow="true">Write</permission>
</permissions>
</action>
</actions>
</config>
</alfresco-config>
Other way is you can create custom evaluator where you need to check that which role current user has.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-30-2019 10:07 AM
Hi,
Please refer this thread as already this discussed.
https://community.alfresco.com/thread/205594-disable-document-actions-based-on-role
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2019 09:45 AM
Hi Mr Sanjay,
Thank you for your reply, I added the code in the "share-config-custom.xml" but nothing has changed, Knowing that i work with alfresco share 5.2
<!– Download document –>
<action id="document-download" type="link" label="actions.document.download">
<param name="href">{downloadUrl}</param>
<permissions>
<permission allow="true">Delete</permission>
</permissions>
</action>

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2019 07:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2019 11:42 AM
Hi,
Thank you for your reply, my need is to delete the download action (file or folder) for the customer role.
I'am blocked can you help me please.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2019 12:31 PM
Consumer can not edit any resources so you can put that condition on that action to restrict download action.
Your file should have configuration like this.
<alfresco-config>
<config evaluator="string-compare" condition="DocLibActions">
<actions>
<action id="document-download" type="link"
label="actions.document.download">
<param name="href">{downloadUrl}</param>
<permissions>
<permission allow="true">Write</permission>
</permissions>
</action>
</actions>
</config>
</alfresco-config>
Other way is you can create custom evaluator where you need to check that which role current user has.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2019 04:57 AM
what files i should modify?thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2019 10:32 AM
/opt/alfresco-community/tomcat/webapps/share/WEB-INF/classes/alfresco/share-documentlibrary-config.xml
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2019 10:37 AM
Do not make any chages directly to share-documentlibrary-config.xml.
Use share-config-custom.xml to override any changes.
If you are using sdk for development then it will be easy to make any changes.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2019 03:30 AM
Hi,i modify the file "tomcat\shared\classes\alfresco\web-extension\share-config-custom.xml",
<alfresco-config>
<config evaluator="string-compare" condition="DocLibActions">
<actions>
<action id="document-download" type="link"
label="actions.document.download">
<param name="href">{downloadUrl}</param>
<permissions>
<permission allow="true">Write</permission>
</permissions>
</action>
</actions>
</config>
</alfresco-config>
and i restart the service.But the download action not disable.
Thanks!
