perm: implement single-ip and ip-network

* with that addition it is possible to restrict records to an special ip
  or an ip network
This commit is contained in:
Christoph Ladurner
2024-07-16 14:25:07 +02:00
parent 52fb93cc43
commit 760363b4a5
7 changed files with 162 additions and 46 deletions

View File

@@ -15,6 +15,9 @@ from invenio_config_tugraz.permissions.policies import TUGrazRDMRecordPermission
ALLOWED_DIFFERENCES = {
"can_authenticated",
"can_create",
"can_search",
"can_view",
"can_all",
"can_search_drafts",
"can_tugraz_authenticated",
}