Skip to content

Commit

Permalink
permissions: add system access permisssion
Browse files Browse the repository at this point in the history
  • Loading branch information
kpsherva committed Nov 6, 2024
1 parent 1a6af5f commit ee96ecd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
pip install ".[$EXTRAS]"
pip freeze
docker --version
docker-compose --version
docker compose --version
- name: Run tests
run: |
Expand Down
6 changes: 5 additions & 1 deletion invenio_access/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@

system_identity.provides.add(system_process)


class _P(namedtuple("Permission", ["needs", "excludes"])):
"""Helper for simple permission updates."""

Expand Down Expand Up @@ -219,3 +218,8 @@ def excludes(self):
"""
self._load_permissions()
return self._permissions.excludes


system_access_permission = Permission(system_process)
"""Used to restrict access to system process."""

0 comments on commit ee96ecd

Please sign in to comment.