<?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: Add judging condition to disable  Download button in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/add-judging-condition-to-disable-download-button/m-p/128076#M34761</link>
    <description>&lt;P&gt;Hi Team;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Could you give me &lt;SPAN class=""&gt;some&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;advise to limit download?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Any help will be greatly appreciated. My code is as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;node-header.get.js&lt;/STRONG&gt;&lt;/FONT&gt;&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 .......&lt;BR /&gt;if (&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;Here:&amp;nbsp;I&lt;/FONT&gt;f&amp;nbsp; users only have Read permission, then hide Download button&lt;/STRONG&gt;,&amp;nbsp;&amp;nbsp;&lt;FONT size="4"&gt;&lt;STRONG&gt;how to creat the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;judging&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;condition&lt;/SPAN&gt;?&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;){&lt;BR /&gt;&amp;nbsp; &amp;nbsp;model.showDownload = "false";&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Fri, 16 Dec 2022 00:59:44 GMT</pubDate>
    <dc:creator>YanFeiHu</dc:creator>
    <dc:date>2022-12-16T00:59:44Z</dc:date>
    <item>
      <title>Add judging condition to disable  Download button</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/add-judging-condition-to-disable-download-button/m-p/128075#M34760</link>
      <description>&lt;P&gt;Hi Community:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I want to disable the top right corner Download button,&amp;nbsp; and we can use code&amp;nbsp; 'model.showDownload = "false"' to do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; But how to add a judging condition that if user who only have read permission, then disable it?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Please refer the JS file as below, thank！&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;node-header.get.js&lt;/STRONG&gt;&lt;/FONT&gt;&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 .......&lt;BR /&gt;if ( &lt;STRONG&gt;&lt;FONT size="4"&gt;Here:&amp;nbsp;I&lt;/FONT&gt;f&amp;nbsp; users only have Read permission, then hide Download button&lt;/STRONG&gt;,&amp;nbsp;&amp;nbsp;&lt;FONT size="4"&gt;&lt;STRONG&gt;how to creat the &lt;SPAN class=""&gt;judging&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;condition&lt;/SPAN&gt;?&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;){&lt;BR /&gt;&amp;nbsp; &amp;nbsp;model.showDownload = "false";&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 14:03:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/add-judging-condition-to-disable-download-button/m-p/128075#M34760</guid>
      <dc:creator>YanFeiHu</dc:creator>
      <dc:date>2022-12-15T14:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Add judging condition to disable  Download button</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/add-judging-condition-to-disable-download-button/m-p/128076#M34761</link>
      <description>&lt;P&gt;Hi Team;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Could you give me &lt;SPAN class=""&gt;some&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;advise to limit download?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Any help will be greatly appreciated. My code is as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;node-header.get.js&lt;/STRONG&gt;&lt;/FONT&gt;&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 .......&lt;BR /&gt;if (&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;Here:&amp;nbsp;I&lt;/FONT&gt;f&amp;nbsp; users only have Read permission, then hide Download button&lt;/STRONG&gt;,&amp;nbsp;&amp;nbsp;&lt;FONT size="4"&gt;&lt;STRONG&gt;how to creat the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;judging&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;condition&lt;/SPAN&gt;?&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;){&lt;BR /&gt;&amp;nbsp; &amp;nbsp;model.showDownload = "false";&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 00:59:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/add-judging-condition-to-disable-download-button/m-p/128076#M34761</guid>
      <dc:creator>YanFeiHu</dc:creator>
      <dc:date>2022-12-16T00:59:44Z</dc:date>
    </item>
  </channel>
</rss>

