Skip to content

Commit

Permalink
config: set requests permission policy defined in rdm-records
Browse files Browse the repository at this point in the history
* this is necessary to allow guests to access the guest request access
  details via the access request tokens
  • Loading branch information
max-moser committed Jul 6, 2023
1 parent e1547c1 commit b13a9a5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions invenio_app_rdm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
CommunityServiceComponents,
)
from invenio_rdm_records.services.errors import InvalidCommunityVisibility
from invenio_rdm_records.services.permissions import RDMRequestsPermissionPolicy
from invenio_rdm_records.services.stats import permissions_policy_lookup_factory
from invenio_records_resources.references.entity_resolvers import ServiceResultResolver
from invenio_stats.aggregations import StatAggregator
Expand Down Expand Up @@ -1154,3 +1155,12 @@ def github_link_render(record):

USERS_RESOURCES_SERVICE_SCHEMA = NotificationsUserSchema
"""Schema used by the users service."""


# Invenio-Requests
# =================
# See https://github.com/inveniosoftware/invenio-requests/blob/master/invenio_requests/config.py # noqa


REQUESTS_PERMISSION_POLICY = RDMRequestsPermissionPolicy
"""The requests permission policy, extended to work with guest access requests."""

0 comments on commit b13a9a5

Please sign in to comment.