<?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 Restrict Users Role in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/restrict-users-role/m-p/29432#M12542</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;In ADF, I want to restrict creating libraries action, only Administrator can create a library. This is what I wrote in app.evaluators.ts, but it does not work well, I have to manually reload it, then it works . Can some correct me? Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 9.0pt;"&gt;&lt;SPAN style="color: #cc7832;"&gt;export function &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;canCreateLibrary&lt;/SPAN&gt;(&lt;BR /&gt;  context: RuleContext&lt;SPAN style="color: #cc7832;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;  &lt;/SPAN&gt;...args: RuleParameter[]&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;SPAN style="color: #cc7832;"&gt;boolean &lt;/SPAN&gt;{&lt;BR /&gt;  &lt;BR /&gt;  &lt;SPAN style="color: #cc7832;"&gt;let &lt;/SPAN&gt;isAdmin: &lt;SPAN style="color: #cc7832;"&gt;boolean &lt;/SPAN&gt;= &lt;SPAN style="color: #cc7832;"&gt;false;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;  if &lt;/SPAN&gt;(context.&lt;SPAN style="color: #9876aa;"&gt;profile &lt;/SPAN&gt;) {&lt;BR /&gt;    isAdmin = context.&lt;SPAN style="color: #9876aa;"&gt;profile&lt;/SPAN&gt;.&lt;SPAN style="color: #9876aa;"&gt;isAdmin&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;  &lt;/SPAN&gt;}&lt;BR /&gt;  console.&lt;SPAN style="color: #ffc66d;"&gt;log&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"IS Admin" &lt;/SPAN&gt;+ isAdmin)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;  return &lt;/SPAN&gt;isAdmin&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jul 2019 13:15:52 GMT</pubDate>
    <dc:creator>dxwtyz</dc:creator>
    <dc:date>2019-07-02T13:15:52Z</dc:date>
    <item>
      <title>Restrict Users Role</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/restrict-users-role/m-p/29432#M12542</link>
      <description>Hi Guys,In ADF, I want to restrict creating libraries action, only Administrator can create a library. This is what I wrote in app.evaluators.ts, but it does not work well, I have to manually reload it, then it works . Can some correct me? Thanks.export function canCreateLibrary(  context: RuleConte</description>
      <pubDate>Tue, 02 Jul 2019 13:15:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/restrict-users-role/m-p/29432#M12542</guid>
      <dc:creator>dxwtyz</dc:creator>
      <dc:date>2019-07-02T13:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Users Role</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/restrict-users-role/m-p/29433#M12543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I suggest you to ask in the content app channel this question is relative to it I guess:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://gitter.im/Alfresco/content-app" title="https://gitter.im/Alfresco/content-app" rel="nofollow noopener noreferrer"&gt;Alfresco/content-app - Gitter&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2019 16:30:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/restrict-users-role/m-p/29433#M12543</guid>
      <dc:creator>eugenio_romano</dc:creator>
      <dc:date>2019-07-08T16:30:12Z</dc:date>
    </item>
  </channel>
</rss>

