<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I disable download option for Consumer in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-disable-download-option-for-consumer/m-p/13310#M5885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please look at the github project link ?&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/muralidharand/alfresco-disable-enable-download-action" title="https://github.com/muralidharand/alfresco-disable-enable-download-action" rel="nofollow noopener noreferrer"&gt;GitHub - muralidharand/alfresco-disable-enable-download-action&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Aug 2017 11:28:59 GMT</pubDate>
    <dc:creator>muralidharand</dc:creator>
    <dc:date>2017-08-17T11:28:59Z</dc:date>
    <item>
      <title>How do I disable download option for Consumer</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-disable-download-option-for-consumer/m-p/13308#M5883</link>
      <description>Hello,Can some one helpe me to&amp;nbsp;disable the download option for Consumer&amp;nbsp;?</description>
      <pubDate>Wed, 16 Aug 2017 11:36:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-disable-download-option-for-consumer/m-p/13308#M5883</guid>
      <dc:creator>benabdessamed</dc:creator>
      <dc:date>2017-08-16T11:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable download option for Consumer</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-disable-download-option-for-consumer/m-p/13309#M5884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, have you resolved this problem? I have same problem too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 07:32:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-disable-download-option-for-consumer/m-p/13309#M5884</guid>
      <dc:creator>justinliyh</dc:creator>
      <dc:date>2017-08-17T07:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable download option for Consumer</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-disable-download-option-for-consumer/m-p/13310#M5885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please look at the github project link ?&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/muralidharand/alfresco-disable-enable-download-action" title="https://github.com/muralidharand/alfresco-disable-enable-download-action" rel="nofollow noopener noreferrer"&gt;GitHub - muralidharand/alfresco-disable-enable-download-action&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 11:28:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-disable-download-option-for-consumer/m-p/13310#M5885</guid>
      <dc:creator>muralidharand</dc:creator>
      <dc:date>2017-08-17T11:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable download option for Consumer</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-disable-download-option-for-consumer/m-p/13311#M5886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting project, but it seems it does not remove the options to download from the preview component, neither from the search result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 13:15:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-disable-download-option-for-consumer/m-p/13311#M5886</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-08-17T13:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable download option for Consumer</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-disable-download-option-for-consumer/m-p/13312#M5887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Helpfull Answer... Thanks For Sharing &lt;A __default_attr="105602" __jive_macro_name="user" _jive_internal="true" data-id="105602" data-objecttype="3" data-type="person" href="https://community.alfresco.com/people/muralidharand" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 10:15:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-disable-download-option-for-consumer/m-p/13312#M5887</guid>
      <dc:creator>ruthevans</dc:creator>
      <dc:date>2017-08-18T10:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable download option for Consumer</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-disable-download-option-for-consumer/m-p/13313#M5888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" class="" data-userid="105602" data-username="muralidharand" href="https://community.alfresco.com/people/muralidharand" style="color: #8bc34a; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: none; font-size: 1.286rem;" rel="nofollow noopener noreferrer"&gt;Muralidharan Deenathayalan&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanx for your help, but i am new in alfresco, how i can do this?&lt;/P&gt;&lt;P&gt;Thanx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Aug 2017 06:49:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-disable-download-option-for-consumer/m-p/13313#M5888</guid>
      <dc:creator>benabdessamed</dc:creator>
      <dc:date>2017-08-20T06:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable download option for Consumer</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-disable-download-option-for-consumer/m-p/13314#M5889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is what you need to disable both download buttons for everyone:&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="231005" __jive_macro_name="thread" _jive_internal="true" class="jive_macro_thread jive_macro link-titled" href="https://community.alfresco.com/thread/231005-how-to-disabling-preview-download-in-alfresco-52" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to disable it just for a Consumer you can use an evaluator to check group membership.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 14:43:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-disable-download-option-for-consumer/m-p/13314#M5889</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2017-08-24T14:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable download option for Consumer</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-disable-download-option-for-consumer/m-p/13315#M5890</link>
      <description>&lt;P&gt;I did my research about alfresco and made a simple documentation. Have a look at the code below:&lt;/P&gt;&lt;P&gt;Find the section for disabling downloads.&lt;/P&gt;&lt;P&gt;#################################################&lt;BR /&gt;Alfresco -Installation using docker&lt;BR /&gt;#################################################&lt;/P&gt;&lt;P&gt;sudo apt update&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sudo apt-get install \&lt;BR /&gt;apt-transport-https \&lt;BR /&gt;ca-certificates \&lt;BR /&gt;curl \&lt;BR /&gt;gnupg-agent \&lt;BR /&gt;software-properties-common&lt;/P&gt;&lt;P&gt;curl -fsSL &lt;A href="https://download.docker.com/linux/ubuntu/gpg" target="_blank" rel="nofollow noopener noreferrer"&gt;https://download.docker.com/linux/ubuntu/gpg&lt;/A&gt; | sudo apt-key add -&lt;/P&gt;&lt;P&gt;sudo add-apt-repository \&lt;BR /&gt;"deb [arch=amd64] &lt;A href="https://download.docker.com/linux/ubuntu" target="_blank" rel="nofollow noopener noreferrer"&gt;https://download.docker.com/linux/ubuntu&lt;/A&gt; \&lt;BR /&gt;$(lsb_release -cs) \&lt;BR /&gt;stable"&lt;BR /&gt;&lt;BR /&gt;sudo apt-get install docker-ce docker-ce-cli containerd.io&lt;/P&gt;&lt;P&gt;sudo docker -v&lt;/P&gt;&lt;P&gt;#################################################&lt;BR /&gt;Result: Docker version 20.10.0, build 7287ab3&lt;BR /&gt;#################################################&lt;/P&gt;&lt;P&gt;sudo curl -L "&lt;A href="https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname&lt;/A&gt; -s)-$(uname -m)" -o /usr/local/bin/docker-compose&lt;/P&gt;&lt;P&gt;sudo chmod +x /usr/local/bin/docker-compose&lt;/P&gt;&lt;P&gt;sudo docker-compose -v&lt;/P&gt;&lt;P&gt;#################################################&lt;BR /&gt;Result: docker-compose version 1.27.4, build 40524192&lt;BR /&gt;#################################################&lt;/P&gt;&lt;P&gt;sudo apt install nodejs&lt;/P&gt;&lt;P&gt;sudo apt install npm&lt;/P&gt;&lt;P&gt;sudo npm install -g yo&lt;/P&gt;&lt;P&gt;sudo npm install --global generator-alfresco-docker-installer&lt;/P&gt;&lt;P&gt;curl -o- &lt;A href="https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh" target="_blank" rel="nofollow noopener noreferrer"&gt;https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh&lt;/A&gt; | bash&lt;/P&gt;&lt;P&gt;source ~/.nvm/nvm.sh&lt;/P&gt;&lt;P&gt;nvm install 14&lt;/P&gt;&lt;P&gt;nvm use 14&lt;/P&gt;&lt;P&gt;npm install -g generator-alfresco-docker-installer&lt;/P&gt;&lt;P&gt;yo alfresco-docker-installer&lt;/P&gt;&lt;P&gt;? Which ACS version do you want to use? 7.4&lt;BR /&gt;? How may GB RAM are available for Alfresco (8 is minimum required)? 12&lt;BR /&gt;? Do you want to use HTTPs for Web Proxy? No&lt;BR /&gt;? What is the name of your server? write the name of your server.&lt;BR /&gt;? What HTTP port do you want to use (all the services are using the same port)? 80&lt;BR /&gt;? Do you want to use FTP (port 2121)? No&lt;BR /&gt;? Do you want to use MariaDB instead of PostgreSQL? No&lt;BR /&gt;? Are you using different languages (this is the most common scenario)? Yes&lt;BR /&gt;? Do you want to create an internal SMTP server? No&lt;BR /&gt;? Do you want to create an internal LDAP server? No&lt;BR /&gt;? Select the addons to be installed:&lt;BR /&gt;? Are you using a Windows host to run Docker? No&lt;BR /&gt;? Do you want to use a start script? No&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#################################################&lt;BR /&gt;Run the command below to start Alfresco app&lt;BR /&gt;#################################################&lt;/P&gt;&lt;P&gt;sudo docker-compose up&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#################################################&lt;BR /&gt;URLs&lt;BR /&gt;#################################################&lt;/P&gt;&lt;P&gt;UI (User Interface) : &lt;A href="http://sever" target="_blank" rel="nofollow noopener noreferrer"&gt;http://sever&lt;/A&gt; IP address or Domain name/&lt;BR /&gt;Legacy UI (Users and management): &lt;A href="http://sever" target="_blank" rel="nofollow noopener noreferrer"&gt;http://sever&lt;/A&gt; IP address or Domain name/share&lt;BR /&gt;Repository (REST API) : &lt;A href="http://sever" target="_blank" rel="nofollow noopener noreferrer"&gt;http://sever&lt;/A&gt; IP address or Domain name/alfresco&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#################################################&lt;BR /&gt;Legacy UI(users and management) Customization&lt;BR /&gt;#################################################&lt;/P&gt;&lt;P&gt;#################################################&lt;BR /&gt;How to disable Rightclick&lt;BR /&gt;#################################################&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Step 1) Stop the alfresco server&lt;/P&gt;&lt;P&gt;Step 2) Edit web-preview.get.html.ftl file found in the directory below&lt;/P&gt;&lt;P&gt;/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/preview&lt;BR /&gt;&lt;BR /&gt;to contain a javascript code that disable rightclick;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;document.addEventListener('contextmenu', function (e) {&lt;BR /&gt;e.preventDefault();&lt;BR /&gt;// You can add any additional code here if needed&lt;BR /&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&lt;BR /&gt;The file should finaly look as shown below;&lt;/P&gt;&lt;P&gt;&amp;lt;@markup id="html"&amp;gt;&lt;BR /&gt;&amp;lt;@uniqueIdDiv&amp;gt;&lt;BR /&gt;&amp;lt;#if node??&amp;gt;&lt;BR /&gt;&amp;lt;#assign el=args.htmlid?html&amp;gt;&lt;BR /&gt;&amp;lt;div id="${el}-body" class="web-preview"&amp;gt;&lt;BR /&gt;&amp;lt;div id="${el}-previewer-div" class="previewer"&amp;gt;&lt;BR /&gt;&amp;lt;div class="message"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;document.addEventListener('contextmenu', function (e) {&lt;BR /&gt;e.preventDefault();&lt;BR /&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;/#if&amp;gt;&lt;BR /&gt;&amp;lt;/@&amp;gt;&lt;BR /&gt;&amp;lt;/@markup&amp;gt;&lt;/P&gt;&lt;P&gt;Step 3) Save and restart the servver&lt;/P&gt;&lt;P&gt;#####################################################&lt;BR /&gt;How to Disable the top right corner Download button&lt;BR /&gt;#####################################################&lt;/P&gt;&lt;P&gt;Step 1) Stop alfresco server&lt;/P&gt;&lt;P&gt;Step 2) Create an XML file called hide-download-pdf.xml under&lt;/P&gt;&lt;P&gt;/tomcat/shared/classes/alfresco/web-extension/site-data/extension:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;extension&amp;gt;&lt;BR /&gt;&amp;lt;modules&amp;gt;&lt;BR /&gt;&amp;lt;module&amp;gt;&lt;BR /&gt;&amp;lt;id&amp;gt;Hide Download Buttons&amp;lt;/id&amp;gt;&lt;BR /&gt;&amp;lt;auto-deploy&amp;gt;true&amp;lt;/auto-deploy&amp;gt;&lt;BR /&gt;&amp;lt;customizations&amp;gt;&lt;BR /&gt;&amp;lt;customization&amp;gt;&lt;BR /&gt;&amp;lt;targetPackageRoot&amp;gt;org.alfresco&amp;lt;/targetPackageRoot&amp;gt;&lt;BR /&gt;&amp;lt;sourcePackageRoot&amp;gt;com.someco&amp;lt;/sourcePackageRoot&amp;gt;&lt;BR /&gt;&amp;lt;/customization&amp;gt;&lt;BR /&gt;&amp;lt;/customizations&amp;gt;&lt;BR /&gt;&amp;lt;/module&amp;gt;&lt;BR /&gt;&amp;lt;/modules&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/extension&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Step 3) Create a file node-header.get.js with the following under&lt;/P&gt;&lt;P&gt;/tomcat/shared/classes/alfresco/web-extension/site-webscripts/com/someco/components/node-details&lt;/P&gt;&lt;P&gt;&amp;lt;import resource="classpath:/alfresco/templates/org/alfresco/import/alfresco-util.js"&amp;gt;&lt;BR /&gt;var nodeDetails = AlfrescoUtil.getNodeDetails(model.nodeRef, model.site, null, model.libraryRoot);&lt;BR /&gt;var count = nodeDetails.item.node.properties["cm:autoVersion"];&lt;/P&gt;&lt;P&gt;if (count != undefined)&lt;BR /&gt;{&lt;BR /&gt;model.showDownload = "false";&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Step 4) Restart alfresco server.&lt;/P&gt;&lt;P&gt;Go to a file in Alfresco -&amp;gt; Click Manage Aspects from the details options -&amp;gt; add cm:versionable aspect -&amp;gt; Hit Apply changes. You will see that the Download button will disappear&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;######################################################################&lt;BR /&gt;How to Disable the download button at the center, on top of the file&lt;BR /&gt;######################################################################&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Step 1) Stop the Alfresco server&lt;/P&gt;&lt;P&gt;Step 2) Edit the pdfjs.get.js file under&lt;/P&gt;&lt;P&gt;/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/modules/preview&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;by commenting the section for download as shown:&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;type: "separator",&lt;BR /&gt;useWrapper: true,&lt;BR /&gt;wrapperClassName: "maximizebuttonSep"&lt;BR /&gt;},&lt;BR /&gt;// {&lt;BR /&gt;// id: "download",&lt;BR /&gt;// type: "button",&lt;BR /&gt;// icon: "components/documentlibrary/actions/document-download-16.png",&lt;BR /&gt;// label: msg.get("button.download"),&lt;BR /&gt;// title: msg.get("button.download")&lt;BR /&gt;// },&lt;BR /&gt;{&lt;BR /&gt;id: "link",&lt;BR /&gt;type: "button",&lt;BR /&gt;icon: "components/images/link-16.png",&lt;BR /&gt;title: msg.get("button.link"),&lt;BR /&gt;useWrapper: true,&lt;BR /&gt;wrapperClassName: "linkbutton"&lt;BR /&gt;},&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Step 3) Save and restart the servver.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;###############################################################################################&lt;BR /&gt;How to Disable Folder Download, Document Download, View document in browser and Edit offline.&lt;BR /&gt;###############################################################################################&lt;/P&gt;&lt;P&gt;Step 1) Stop the Alfresco server&lt;/P&gt;&lt;P&gt;Step 2) Edit the share-documentlibrary-config.xml file under&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/tomcat/webapps/share/WEB-INF/classes/alfresco&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;by commenting the section(s):&lt;BR /&gt;&lt;BR /&gt;##############################################################################################&lt;BR /&gt;(a) responsible for folder download as shown:&lt;BR /&gt;##############################################################################################&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;!-- Download folder --&amp;gt;&lt;BR /&gt;&amp;lt;!--&lt;BR /&gt;&amp;lt;action id="folder-download" type="javascript" label="actions.folder.download" icon="document-download"&amp;gt;&lt;BR /&gt;&amp;lt;param name="function"&amp;gt;onActionFolderDownload&amp;lt;/param&amp;gt;&lt;BR /&gt;&amp;lt;/action&amp;gt;&lt;BR /&gt;--&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;###############################################################################################&lt;BR /&gt;(b) responsible for document download as shown:&lt;BR /&gt;###############################################################################################&lt;BR /&gt;&lt;BR /&gt;&amp;lt;!-- Download document --&amp;gt;&lt;BR /&gt;&amp;lt;!--&lt;BR /&gt;&amp;lt;action id="document-download" type="link" label="actions.document.download"&amp;gt;&lt;BR /&gt;&amp;lt;param name="href"&amp;gt;{downloadUrl}&amp;lt;/param&amp;gt;&lt;BR /&gt;&amp;lt;param name="target"&amp;gt;_blank&amp;lt;/param&amp;gt;&lt;BR /&gt;&amp;lt;evaluator&amp;gt;evaluator.doclib.action.downloadBrowser&amp;lt;/evaluator&amp;gt;&lt;BR /&gt;&amp;lt;evaluator&amp;gt;evaluator.doclib.action.hasContent&amp;lt;/evaluator&amp;gt;&lt;BR /&gt;&amp;lt;/action&amp;gt;&lt;BR /&gt;--&amp;gt;&lt;BR /&gt;&lt;BR /&gt;###############################################################################################&lt;BR /&gt;(c) responsible for View document in browser found under &amp;lt;actionGroup id="document-details"&amp;gt;&lt;/P&gt;&lt;P&gt;as shown:&lt;BR /&gt;###############################################################################################&lt;BR /&gt;&lt;BR /&gt;&amp;lt;!--&lt;BR /&gt;&amp;lt;action index="110" id="document-view-content" subgroup="10" appendEvaluators="true"&amp;gt;&lt;BR /&gt;&amp;lt;evaluator&amp;gt;evaluator.doclib.action.DocumentEnableInSmartFolder&amp;lt;/evaluator&amp;gt;&lt;BR /&gt;&amp;lt;/action&amp;gt;&lt;BR /&gt;--&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;#################################################################################################&lt;BR /&gt;(d) responsible for Edit offline found under &amp;lt;actionGroup id="document-details"&amp;gt;&lt;/P&gt;&lt;P&gt;as shown:&lt;BR /&gt;#################################################################################################&lt;/P&gt;&lt;P&gt;&amp;lt;!-- Edit offline --&amp;gt;&lt;BR /&gt;&amp;lt;!--&lt;BR /&gt;&amp;lt;action id="document-edit-offline" type="javascript" label="actions.document.edit-offline"&amp;gt;&lt;BR /&gt;&amp;lt;param name="function"&amp;gt;onActionEditOffline&amp;lt;/param&amp;gt;&lt;BR /&gt;&amp;lt;permissions&amp;gt;&lt;BR /&gt;&amp;lt;permission allow="true"&amp;gt;Write&amp;lt;/permission&amp;gt;&lt;BR /&gt;&amp;lt;/permissions&amp;gt;&lt;BR /&gt;&amp;lt;evaluator&amp;gt;evaluator.doclib.action.offlineEdit&amp;lt;/evaluator&amp;gt;&lt;BR /&gt;&amp;lt;evaluator&amp;gt;evaluator.doclib.action.hasContent&amp;lt;/evaluator&amp;gt;&lt;BR /&gt;&amp;lt;evaluator negate="true"&amp;gt;evaluator.doclib.action.notEditable&amp;lt;/evaluator&amp;gt;&lt;BR /&gt;&amp;lt;/action&amp;gt;&lt;BR /&gt;--&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;!--&lt;BR /&gt;&amp;lt;action index="360" id="document-edit-offline" subgroup="30" appendEvaluators="true"&amp;gt;&lt;BR /&gt;&amp;lt;evaluator&amp;gt;evaluator.doclib.action.DocumentEnableInSmartFolder&amp;lt;/evaluator&amp;gt;&lt;BR /&gt;&amp;lt;/action&amp;gt;&lt;BR /&gt;--&amp;gt;&lt;/P&gt;&lt;P&gt;Step 3) Save and restart the servver&lt;/P&gt;&lt;P&gt;####################################################################################################&lt;BR /&gt;How to hide the Download icon at the Version History section&lt;BR /&gt;####################################################################################################&lt;/P&gt;&lt;P&gt;Stop the Alfresco server&lt;/P&gt;&lt;P&gt;Open the document-versions.css file under the path below;&lt;/P&gt;&lt;P&gt;/usr/local/tomcat/webapps/share/components/document-details&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Locate the section with the following code;&lt;BR /&gt;&lt;BR /&gt;.document-versions .actions a.download&lt;BR /&gt;{&lt;BR /&gt;background-image: url(images/document-download-16.png);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;now delete the entire line of code that starts with background-image so that it finally looks like this;&lt;/P&gt;&lt;P&gt;.document-versions .actions a.download&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Save and restart the servver&lt;/P&gt;&lt;P&gt;#################################################################################&lt;BR /&gt;UI Customization&lt;BR /&gt;#################################################################################&lt;/P&gt;&lt;P&gt;#################################################################################&lt;BR /&gt;Disable rightclick on the UI&lt;BR /&gt;#################################################################################&lt;/P&gt;&lt;P&gt;Stop the Alfresco server&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Open the html file in the path below;&lt;BR /&gt;&lt;BR /&gt;usr/share/nginx/html/index.html&lt;/P&gt;&lt;P&gt;Insert this javaScript code;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;document.addEventListener('contextmenu', function (event) {&lt;BR /&gt;event.preventDefault();&lt;BR /&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;Save and restart the server&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;########################################################################################################&lt;BR /&gt;To disable the offline editting, print and download buttons, open the main.js file in the path below;&lt;BR /&gt;&lt;BR /&gt;/usr/share/nginx/html/main.js&lt;BR /&gt;########################################################################################################&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;########################################################################################################&lt;BR /&gt;Disable offline editing&lt;BR /&gt;########################################################################################################&lt;/P&gt;&lt;P&gt;Stop the Alfresco server&lt;/P&gt;&lt;P&gt;########################################################################################################&lt;BR /&gt;Inside the main.js file, look for a section that contains the following path comment;&lt;BR /&gt;&lt;BR /&gt;/toggle-edit-offline.components.ts&lt;BR /&gt;&lt;BR /&gt;and comment the line that contains the DownloadNodesAction as shown below;&lt;BR /&gt;########################################################################################################&lt;/P&gt;&lt;P&gt;toggleLock(node) {&lt;BR /&gt;var _this2 = this;&lt;/P&gt;&lt;P&gt;return (0,_home_runner_work_alfresco_content_app_alfresco_content_app_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {&lt;BR /&gt;const id = node.entry.nodeId || node.entry.id;&lt;/P&gt;&lt;P&gt;if ((0,_alfresco_aca_shared__WEBPACK_IMPORTED_MODULE_2__.isLocked)(_this2.selection)) {&lt;BR /&gt;try {&lt;BR /&gt;const response = yield _this2.unlockNode(id);&lt;/P&gt;&lt;P&gt;_this2.update(response?.entry);&lt;/P&gt;&lt;P&gt;_this2.store.dispatch(new _alfresco_aca_shared_store__WEBPACK_IMPORTED_MODULE_1__.EditOfflineAction(_this2.selection));&lt;BR /&gt;} catch {&lt;BR /&gt;_this2.onUnlockError();&lt;BR /&gt;}&lt;BR /&gt;} else {&lt;BR /&gt;try {&lt;BR /&gt;const response = yield _this2.lockNode(id);&lt;/P&gt;&lt;P&gt;_this2.update(response?.entry);&lt;/P&gt;&lt;P&gt;// _this2.store.dispatch(new _alfresco_aca_shared_store__WEBPACK_IMPORTED_MODULE_1__.DownloadNodesAction([_this2.selection]));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;_this2.store.dispatch(new _alfresco_aca_shared_store__WEBPACK_IMPORTED_MODULE_1__.EditOfflineAction(_this2.selection));&lt;BR /&gt;} catch {&lt;BR /&gt;_this2.onLockError();&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;})();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Save and restart the server&lt;/P&gt;&lt;P&gt;############################################################################################&lt;BR /&gt;Disable the print button&lt;BR /&gt;############################################################################################&lt;/P&gt;&lt;P&gt;Stop the Alfresco server&lt;/P&gt;&lt;P&gt;############################################################################################&lt;BR /&gt;Inside the main.js file, look for a section that contains the following path comment;&lt;BR /&gt;&lt;BR /&gt;/node.effects.ts&lt;BR /&gt;&lt;BR /&gt;and comment the following section as shown below;&lt;BR /&gt;############################################################################################&lt;/P&gt;&lt;P&gt;printFile(node) {&lt;BR /&gt;&lt;BR /&gt;/* if (node &amp;amp;&amp;amp; node.entry) {&lt;BR /&gt;// shared and favorite&lt;BR /&gt;const id = node.entry.nodeId || node.entry.guid || node.entry.id;&lt;BR /&gt;const mimeType = node.entry.content.mimeType;&lt;BR /&gt;if (id) {&lt;BR /&gt;this.renditionViewer.printFileGeneric(id, mimeType);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;console.log('Printing is disabled.');&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Save and restart the server&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;##################################################################################################&lt;BR /&gt;Disable/Hide the Download button&lt;BR /&gt;##################################################################################################&lt;/P&gt;&lt;P&gt;Stop the Alfresco server&lt;/P&gt;&lt;P&gt;##################################################################################################&lt;BR /&gt;Inside the main.js file, look for a section that contains the following path comment;&lt;BR /&gt;&lt;BR /&gt;/app.rules.ts&lt;BR /&gt;&lt;BR /&gt;and comment the following section as shown below;&lt;BR /&gt;##################################################################################################&lt;/P&gt;&lt;P&gt;function canDownloadSelection(context) {&lt;/P&gt;&lt;P&gt;/* if (!context.selection.isEmpty &amp;amp;&amp;amp; _navigation_rules__WEBPACK_IMPORTED_MODULE_0__.isNotTrashcan(context)) {&lt;BR /&gt;return context.selection.nodes.every((node) =&amp;gt; node.entry &amp;amp;&amp;amp; (node.entry.isFile || node.entry.isFolder || !!node.entry.nodeId));&lt;BR /&gt;}&lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;return false;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Save and restart the server&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;THE END&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 08:16:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-disable-download-option-for-consumer/m-p/13315#M5890</guid>
      <dc:creator>Jakuon</dc:creator>
      <dc:date>2023-12-07T08:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable download option for Consumer</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-disable-download-option-for-consumer/m-p/13316#M5891</link>
      <description>&lt;P&gt;To disable download for consumers, implement user permissions in the app or platform settings. Restrict access to download features for consumer accounts through user roles or access controls in the admin panel. &lt;A href="https://gbwaapps.com" target="_self" rel="nofollow noopener noreferrer"&gt;&lt;FONT color="#FFFFFF"&gt;GB Whatsapp Download&amp;nbsp; &lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 15:28:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-disable-download-option-for-consumer/m-p/13316#M5891</guid>
      <dc:creator>luis67</dc:creator>
      <dc:date>2023-12-22T15:28:35Z</dc:date>
    </item>
  </channel>
</rss>

