<?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: Check if user is a site admin in share side webscript in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/check-if-user-is-a-site-admin-in-share-side-webscript/m-p/117371#M32472</link>
    <description>&lt;P&gt;&lt;FONT&gt;I'm sorry I haven't use it in FTL before ,But I thinke you can extend the webscript backend js and put the result of group membership into the returned model, And then use it in ftl&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Sep 2020 03:48:00 GMT</pubDate>
    <dc:creator>kaynezhang</dc:creator>
    <dc:date>2020-09-18T03:48:00Z</dc:date>
    <item>
      <title>Check if user is a site admin in share side webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/check-if-user-is-a-site-admin-in-share-side-webscript/m-p/117368#M32469</link>
      <description>&lt;P&gt;How to check if user is a site admin in share side webscript? I need this so admins are able to view certain features.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 10:39:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/check-if-user-is-a-site-admin-in-share-side-webscript/m-p/117368#M32469</guid>
      <dc:creator>Pravesh</dc:creator>
      <dc:date>2020-09-16T10:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Check if user is a site admin in share side webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/check-if-user-is-a-site-admin-in-share-side-webscript/m-p/117369#M32470</link>
      <description>&lt;P&gt;Try&lt;/P&gt;&lt;PRE&gt;if (user.properties["alfUserGroups"].indexOf("GROUP_SITE_ADMINISTRATORS") != -1)
{
	//do something
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Sep 2020 15:56:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/check-if-user-is-a-site-admin-in-share-side-webscript/m-p/117369#M32470</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2020-09-16T15:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Check if user is a site admin in share side webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/check-if-user-is-a-site-admin-in-share-side-webscript/m-p/117370#M32471</link>
      <description>&lt;P&gt;Is there something that can be used in a ftl file to compare or check for Site Manager permisssion? Likke we can put the outcome of this query in model (e.g model.isAdminQuery = ??? ) and check it in ftl&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/39620"&gt;@kaynezhang&lt;/A&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Try&lt;/P&gt;&lt;PRE&gt;if (user.properties["alfUserGroups"].indexOf("GROUP_SITE_ADMINISTRATORS") != -1)
{
	//do something
}&lt;/PRE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 17 Sep 2020 13:23:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/check-if-user-is-a-site-admin-in-share-side-webscript/m-p/117370#M32471</guid>
      <dc:creator>Pravesh</dc:creator>
      <dc:date>2020-09-17T13:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Check if user is a site admin in share side webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/check-if-user-is-a-site-admin-in-share-side-webscript/m-p/117371#M32472</link>
      <description>&lt;P&gt;&lt;FONT&gt;I'm sorry I haven't use it in FTL before ,But I thinke you can extend the webscript backend js and put the result of group membership into the returned model, And then use it in ftl&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 03:48:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/check-if-user-is-a-site-admin-in-share-side-webscript/m-p/117371#M32472</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2020-09-18T03:48:00Z</dc:date>
    </item>
  </channel>
</rss>

