public boolean hasRole(CmsObject cms, CmsRole role) {

        return m_securityManager.hasRole(cms.getRequestContext(), cms.getRequestContext().getCurrentUser(), role);
    }
public boolean hasRole ( CmsObject cms , CmsRole role ) { return m_securityManager . hasRole ( cms . getRequestContext ( ) , cms . getRequestContext ( ) . getCurrentUser ( ) , role ) ; }
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