docs: public boolean isCanPublish() {
  
          return OpenCms.getWorkplaceManager().getDefaultUserSettings().isAllowBrokenRelations()
              || OpenCms.getRoleManager().hasRole(getCms(), CmsRole.VFS_MANAGER);
      }