<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Check what Site Role User Has Snippet</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118548020" />
  <subtitle>Check what Site Role User Has Snippet</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118548020</id>
  <updated>2026-04-06T20:21:23Z</updated>
  <dc:date>2026-04-06T20:21:23Z</dc:date>
  <entry>
    <title>RE: Check what Site Role User Has Snippet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118552473" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118552473</id>
    <updated>2020-02-20T04:34:44Z</updated>
    <published>2020-02-20T04:34:44Z</published>
    <summary type="html">You can use the permission checker to see if the user has the ability to, say, post a comment on an article. That&amp;#39;s something that is usually granted to members but not to guests and the permission checker can easily resolve that for you.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2020-02-20T04:34:44Z</dc:date>
  </entry>
  <entry>
    <title>Check what Site Role User Has Snippet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118548019" />
    <author>
      <name>Lee Jordan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118548019</id>
    <updated>2020-02-19T22:02:13Z</updated>
    <published>2020-02-19T22:02:13Z</published>
    <summary type="html">To check in theme if user is a portal admin, site admin or site owner of the current site add this to init_custom.ftl in /src directory of theme.&lt;br /&gt;&lt;br /&gt;&amp;lt;#if is_signed_in&amp;gt;&lt;br /&gt;    &amp;lt;#if permissionChecker.isOmniadmin()&amp;gt;&amp;lt;#assign is_portal_admin = true /&amp;gt;&amp;lt;/#if&amp;gt;&lt;br /&gt;    &amp;lt;#if permissionChecker.isGroupAdmin(group_id)&amp;gt;&amp;lt;#assign is_site_admin = true /&amp;gt;&amp;lt;/#if&amp;gt;&lt;br /&gt;    &amp;lt;#if permissionChecker.isGroupOwner(group_id)&amp;gt;&amp;lt;#assign is_site_owner = true /&amp;gt;&amp;lt;/#if&amp;gt;&lt;br /&gt;&amp;lt;/#if&amp;gt;&lt;br /&gt;&lt;br /&gt;Anyone know how to find out if the user is a member of the current site so I can do is_joined or is_site_member?</summary>
    <dc:creator>Lee Jordan</dc:creator>
    <dc:date>2020-02-19T22:02:13Z</dc:date>
  </entry>
</feed>
