Skip to content

Commit

Permalink
modification: add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
philippgualdi committed Jul 11, 2023
1 parent 9cc3ee1 commit 0f8ec52
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions invenio_records_marc21/services/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,17 @@ class Marc21RecordPermissionPolicy(RecordPermissionPolicy):
can_curate = can_manage + [Marc21RecordCurators()]
can_view = can_curate

# Records
############
# Records #
############

# Allow to create a record (create a draft)
can_create = can_manage
# Allow to put a record in edit mode (create a draft from record)
can_edit = can_curate
# Allow publishing a new record or changes to an existing record.
can_publish = can_curate
# Allow lifting a record or draft.
# Allow lifting the embargo of a record.
can_lift_embargo = can_curate
# Allow creating a new version of an existing published record.
can_new_version = can_manage
Expand All @@ -77,7 +80,11 @@ class Marc21RecordPermissionPolicy(RecordPermissionPolicy):
# Allow managing record access
can_manage_record_access = can_manage

# Draft
############
# Draft #
############

# Allow read a draft
can_read_draft = can_curate
# Allow deleting/discarding a draft and all associated files
can_delete_draft = can_curate
Expand Down

0 comments on commit 0f8ec52

Please sign in to comment.