This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Restrict an User from downloading a file

ergr - Thursday, June 20, 2013 3:10 AM:

Hi,

How can I restrict an User form downloading a related file of a Document.  The User can view the file , but not allowed to save a copy of that file. On Cad Documents there are two fields 'Native file' and 'viewable file', here any user can click on the file link and save a copy of that file.

Is there a way to disable the 'Save' option on the dialogue that appears after clicking on the file link?  Even the option 'Get Copy of 'File' files is also saving a copy of the file. Please help me.

Thank you.



Eric Domke - Thursday, June 27, 2013 12:59 PM:

In order for a user to access/view a file, they need to be able to download that file to their machine.  However, for the case of a CAD document where you might want a user to be able to access/view/download the viewable file, but not the native file, I would use server methods to change the permission_id on the native file item itself to a permission that blocks certain users for "getting" the file.  In addition, since the File item type automatically versions, I generally use SQL for this (e.g. innovator.applySql) to avoid the creation of a new version of the file simply because of a permissions change.