cancel
Showing results for 
Search instead for 
Did you mean: 

Disallow download of documents (in share) - only preview

redguy
Champ in-the-making
Champ in-the-making
I am facing such problem:
in several projects we have signed NDA documents witch obligate us to controll spreading of document copies. We would allow preview of such document (standard flash preview in share), but we would like to disable download pissibility for some users. Others on the other hand should have full access, so we cannot just totally remove download action from share.

Is there any way we could configure this scenario?
1 REPLY 1

abhashree
Champ in-the-making
Champ in-the-making
Hi Redguy,

You can disable the download function of the content  for some users but the preview will be possible.
There is a file document-actions.get.config.xml in the path  alfresco-3.4.d/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/document-details.
In this file it is mentioned like
<action type="simple-link" id="onActionDownload" href="{downloadUrl}" label="actions.document.download" />
<action type="simple-link" id="onActionView" href="{viewUrl}" label="actions.document.view" />
<action type="simple-link" id="onActionDetails" permission="edit" href="{editMetadataUrl}" label="actions.document.edit-metadata" />

so for download and preview activity there is no permission set hence every user is able to download and preview of the content.
If we change download's permission to edit then the users having edit privilege will be able to download .
If we change download's permission to delete then the users having delete privilege will be able to downlaod.
The users those who has not this privilege will not be able to download.
<action type="simple-link" id="onActionDownload" permission="edit"/"delete" href="{downloadUrl}" label="actions.document.download" />
<action type="simple-link" id="onActionView" href="{viewUrl}" label="actions.document.view" />
<action type="simple-link" id="onActionDetails" permission="edit" href="{editMetadataUrl}" label="actions.document.edit-metadata" />

Try this out .I think this will help you to achieve your requirement.

Thanks in advance,
Abhashree