Skip to content

Commit

Permalink
components: enrich file lock function
Browse files Browse the repository at this point in the history
  • Loading branch information
kpsherva committed Oct 19, 2023
1 parent 5d2d463 commit c68c896
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion invenio_drafts_resources/services/records/components/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ def edit(self, identity, draft=None, record=None):
draft_files = self.get_record_files(draft)
record_files = self.get_record_files(record)
draft_bucket = self.get_record_bucket(draft)
lock_files = self.service.config.lock_edit_published_files(record)
lock_files = self.service.config.lock_edit_published_files(
self.service, identity, record=draft
)

if draft_bucket is None:
# Happens, when a soft-deleted draft is un-deleted.
Expand Down

0 comments on commit c68c896

Please sign in to comment.