From 2fc29d2f78b76c6f64383678bf769ea2ee7d7d17 Mon Sep 17 00:00:00 2001 From: Karolina Przerwa Date: Wed, 6 Nov 2024 18:15:00 +0100 Subject: [PATCH] permissions: add system permisssion * closes https://github.com/CERNDocumentServer/cds-rdm/issues/240 --- invenio_access/permissions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/invenio_access/permissions.py b/invenio_access/permissions.py index efec9f1..307a4ff 100644 --- a/invenio_access/permissions.py +++ b/invenio_access/permissions.py @@ -219,3 +219,7 @@ def excludes(self): """ self._load_permissions() return self._permissions.excludes + + +system_permission = Permission(system_process) +"""Used to restrict access to system process."""