title: How can I check if user is in usergroup "Friends" in Joomla 3?
body: <p>how can I check, if current user is in usergroup called for example "Friends" (title) in Joomla 3?</p>
  
  <pre><code>        $user = JUser::getInstance($result-&gt;id);
  
          $groups = $user-&gt;getAuthorisedGroups(); // just IDs, not title
  </code></pre>
  
  <p>Thanks.</p>