docs: public void checkManagerOfProjectRole(CmsDbContext dbc, CmsProject project) throws CmsRoleViolationException {
  
          boolean hasRole = false;
          try {
              if (hasRole(dbc, dbc.currentUser(), CmsRole.ROOT_ADMIN)) {
                  return;
              }
              hasRole = m_driverManager.getAllManageableProjects(
                  dbc,
                  m_driverManager.readOrganizationalUnit(dbc, project.getOuFqn()),
                  false).contains(project);
          } catch (CmsException e) {
              // should never happen
              if (LOG.isErrorEnabled()) {
                  LOG.error(e.getLocalizedMessage(), e);
              }
          }
          if (!hasRole) {
              throw new CmsRoleViolationException(
                  org.opencms.security.Messages.get().container(
                      org.opencms.security.Messages.ERR_NOT_MANAGER_OF_PROJECT_2,
                      dbc.currentUser().getName(),
                      dbc.currentProject().getName()));
          }
      }