cancel
Showing results for 
Search instead for 
Did you mean: 

How to restrict public access to document shared by external link ?

benjamindupont
Champ in-the-making
Champ in-the-making

Hi there,

Currently, when I want to directly access to a document with a shared link, I don't need to be logged for accessing to the preview and download it. It's big security hole for me, because I don't want anybody can access to document if he have the link.

Do you know how can I restrict the access to document, for only logged users ?


Thanks in advance.

11 REPLIES 11

benjamindupont
Champ in-the-making
Champ in-the-making

Thanks a lot Cesar for this tip, it works well with a rule on the folder !

To conclude, could you just advise me on how to reduce the scope on an precise Alfresco site, in the search with a smart folder (json) and in the rule to delete the shared link (js) ?

Best regards,

Benjamin

Hi Benjamin:

In the smart folder query you can do something like this:

zk-smart-folder-templates/qsharedFolder.json at master · CesarCapillas/zk-smart-folder-templates · G... 

This makes it to apply under the actual path when the smart folder is applied (for example in a site).

In the script you may include something like:

search.luceneSearch('+PATH:"/app:company_home/st:sites/cm:<short-site-name>/cm:documentlibrary" +ASPECT:"qshare:shared"')

Regards.

--C.