code: public List<CmsOrganizationalUnit> getOrgUnitsForRole(CmsObject cms, CmsRole role, boolean includeSubOus)
      throws CmsException {
  
          return m_securityManager.getOrgUnitsForRole(cms.getRequestContext(), role, includeSubOus);
      }
docs: Returns all the organizational units for which the current user has the given role.<p>
  
  @param cms the current cms context
  @param role the role to check
  @param includeSubOus if sub organizational units should be included in the search
  
  @return a list of {@link org.opencms.security.CmsOrganizationalUnit} objects
  
  @throws CmsException if something goes wrong