title: Grails g:if and string comparison
body: <p>I've written some code that checks to see if the user is logged in as an admin or not to limit who can make changes to other user's permissions, but the if tag is never true.  I've made sure the correct data is there by echoing it out but nothing I've found so far has given me a solution.</p>
  
  <pre><code>&lt;g:if test="${session.userPermissions == 'Administrator'}"&gt;
      &lt;g:select id="permissions" name="permissions" from="${userInstance.constraints.permissions.inList}" value="${userInstance.permissions}" &gt;&lt;/g:select&gt;
  &lt;/g:if&gt;
  &lt;g:else&gt;
      ${userInstance.permissions}
  &lt;/g:else&gt;
  </code></pre>