title: Liferay - is user Site Owner?
body: <p>I am working on one feature in Liferay 6 and I want it, to be accessible only for Site Owner. I have big problem how to get if user is Site Owner. I can get if user is Administrator using this </p>
  
  <pre class="lang-java prettyprint-override"><code>if (RoleServiceUtil.hasUserRole(user.getUserId(), companyId,
                  "Administrator", true)) {
     //do something
  }
  </code></pre>
  
  <p>When I use Site Owner instead of Administrator, then I get this message <code>Site Owner is not a regular role</code></p>
  
  <p>Thanks for help</p>
  
  <p>-Roman</p>