Skip to content

Commit

Permalink
fix: creator should not see restricted files
Browse files Browse the repository at this point in the history
  • Loading branch information
utnapischtim committed Oct 26, 2024
1 parent 0583461 commit 0f3c699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invenio_records_marc21/services/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Marc21RecordPermissionPolicy(RecordPermissionPolicy):
can_manage_files = can_curate

can_read_files = [
IfRestricted("files", then_=can_view, else_=can_all),
IfRestricted("files", then_=can_curate, else_=can_all),
]
can_get_content_files = [
IfFileIsLocal(then_=can_read_files, else_=[SystemProcess()])
Expand Down

0 comments on commit 0f3c699

Please sign in to comment.