cancel
Showing results for 
Search instead for 
Did you mean: 

Prevent Download and View in Browser for Consumer Role

radenlov
Champ in-the-making
Champ in-the-making
Hi, I am new to Alfresco and I am having issues to hide/disable the download option and hide View In Browser for users with Consumer/Site Consumer role. Can anyone help me plz..

Thanks
5 REPLIES 5

lementree
Champ on-the-rise
Champ on-the-rise
Hi,

You can add permission tag in <strong>share-documentlibrary-config.xml</strong> as below:

<!– Download document –>
         <action id="document-download" type="link" label="actions.document.download">
            <param name="href">{downloadUrl}</param>
            <evaluator>evaluator.doclib.action.downloadBrowser</evaluator>
            <permissions>
               <permission allow="true">Write</permission>
            </permissions>
         </action>

         <!– View document in browser –>
         <action id="document-view-content" type="link" label="actions.document.view">
            <param name="href">{viewUrl}</param>
             <permissions>
               <permission allow="true">Write</permission>
            </permissions>
         </action>

radenlov
Champ in-the-making
Champ in-the-making
thank you lemetree, your suggestion worked well. you save my day.

hi. i need help with this too. tried adding it in the said file. nothing happens. i have 5.0c version. thanks!

nilesh
Champ in-the-making
Champ in-the-making

Thanks LemeTree it work for me, my Version is 5.2.0 ..

mohammed
Champ in-the-making
Champ in-the-making
Hi, I placed the above configuration in share-documentlibrary-config.xml. The view in browser option is removed from both contributor and consumer but I want it to be removed only from consumer. am I missing some configuration. Thank you in advance