code: public List<CmsSite> getAvailableSites(CmsObject cms, boolean workplaceMode) {
  
          return getAvailableSites(cms, workplaceMode, cms.getRequestContext().getOuFqn());
      }
docs: Returns a list of all sites available (visible) for the current user.<p>
  
  @param cms the current OpenCms user context
  @param workplaceMode if true, the root and current site is included for the admin user
  and the view permission is required to see the site root
  
  @return a list of all sites available for the current user