code: public boolean hasRole(CmsObject cms, CmsRole role) {
  
          return m_securityManager.hasRole(cms.getRequestContext(), cms.getRequestContext().getCurrentUser(), role);
      }
docs: Checks if the given context user has the given role in the given organizational unit.<p>
  
  @param cms the opencms context
  @param role the role to check
  
  @return <code>true</code> if the given context user has the given role in the given organizational unit