<?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 to restrict to empty trashcan in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-to-empty-trashcan/m-p/111364#M31117</link>
    <description>&lt;P&gt;You can add your restrictions to Share UI and to Repository service.&lt;/P&gt;
&lt;P&gt;In order to hide the Share UI button for non Admin users, you can extend &lt;STRONG&gt;Alfresco.ConsoleTrashcan&lt;/STRONG&gt; YUI object:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Alfresco/share/blob/alfresco-share-parent-6.2.0/share/src/main/webapp/components/console/trashcan.js#L47" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/share/blob/alfresco-share-parent-6.2.0/share/src/main/webapp/components/console/trashcan.js#L47&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regarding Repository service, you can create a new &lt;STRONG&gt;NodeServicePolicies.onDeleteNode&lt;/STRONG&gt; behaviour listening to &lt;STRONG&gt;sys:archived&lt;/STRONG&gt; nodes.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Nov 2019 11:02:58 GMT</pubDate>
    <dc:creator>angelborroy</dc:creator>
    <dc:date>2019-11-07T11:02:58Z</dc:date>
    <item>
      <title>How to restrict to empty trashcan</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-to-empty-trashcan/m-p/111363#M31116</link>
      <description>&lt;P&gt;I would like to restrict emptying of trashcan by ordinary users. Permission to empty trashcan should have only users with admin role.&lt;/P&gt;&lt;P&gt;Is there any way how to solve this issue? For example to implement Java method used as evaluator before button displaying? Or any other sophisticated way, solution or implementation, how to secure this resctriction?&lt;/P&gt;&lt;P&gt;Thanks &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 09:55:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-to-empty-trashcan/m-p/111363#M31116</guid>
      <dc:creator>lfedorikova</dc:creator>
      <dc:date>2019-11-07T09:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict to empty trashcan</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-to-empty-trashcan/m-p/111364#M31117</link>
      <description>&lt;P&gt;You can add your restrictions to Share UI and to Repository service.&lt;/P&gt;
&lt;P&gt;In order to hide the Share UI button for non Admin users, you can extend &lt;STRONG&gt;Alfresco.ConsoleTrashcan&lt;/STRONG&gt; YUI object:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Alfresco/share/blob/alfresco-share-parent-6.2.0/share/src/main/webapp/components/console/trashcan.js#L47" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/share/blob/alfresco-share-parent-6.2.0/share/src/main/webapp/components/console/trashcan.js#L47&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regarding Repository service, you can create a new &lt;STRONG&gt;NodeServicePolicies.onDeleteNode&lt;/STRONG&gt; behaviour listening to &lt;STRONG&gt;sys:archived&lt;/STRONG&gt; nodes.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 11:02:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-to-empty-trashcan/m-p/111364#M31117</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2019-11-07T11:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict to empty trashcan</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-to-empty-trashcan/m-p/111365#M31118</link>
      <description>&lt;P&gt;I also have this kind of requirement, thanks for sharing the link.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 15:24:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-to-empty-trashcan/m-p/111365#M31118</guid>
      <dc:creator>bip1989</dc:creator>
      <dc:date>2019-11-20T15:24:10Z</dc:date>
    </item>
  </channel>
</rss>

