title: How can i Check if logged in user is admin or members of the administrators group in javascript
body: <p>I want to show button on page if logged in user is admin or members of the administrators group in javascript.</p>
  
  <p>I am able to get </p>
  
  <pre><code>CQ.User.getCurrentUser() 
  </code></pre>
  
  <p>but not able to check if user is admin. Please suggest.</p>