*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit f515e1bd authored by Moser, Maximilian's avatar Moser, Maximilian
Browse files

Disable community-submission review requests

* because this request workflow can be used to evade our mandatory
  record review
* going through this config item seems to be the minimally invasive
  option (adding a custom requests service component may work better but
  also requires more maintenance)
parent 5eb599fb
1 merge request!49Disable community-submission review requests
...@@ -11,6 +11,7 @@ from datetime import datetime ...@@ -11,6 +11,7 @@ from datetime import datetime
from invenio_i18n import gettext as _ from invenio_i18n import gettext as _
from invenio_oauthclient.views.client import auto_redirect_login from invenio_oauthclient.views.client import auto_redirect_login
from invenio_rdm_records.config import RDM_RECORDS_REVIEWS
from .auth import TUWSSOSettingsHelper from .auth import TUWSSOSettingsHelper
from .forms import tuw_registration_form from .forms import tuw_registration_form
...@@ -193,6 +194,16 @@ OAISERVER_METADATA_FORMATS = { ...@@ -193,6 +194,16 @@ OAISERVER_METADATA_FORMATS = {
RDM_ARCHIVE_DOWNLOAD_ENABLED = False RDM_ARCHIVE_DOWNLOAD_ENABLED = False
RDM_RECORDS_REVIEWS = [rt for rt in RDM_RECORDS_REVIEWS if rt != "community-submission"]
"""Remove the ``community-submission`` from the list of supported review types.
We require mandatory record reviews before publication, but community-submission
requests could be used to evade them and publish records directly (when community
members accept the record in question).
As such, we remove the community-submission as a supported review type.
This config item is checked in the `records_service.review.create()` method.
"""
# Invenio-Requests # Invenio-Requests
# ================ # ================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment