Skip to content

Commit

Permalink
views: pass draft and record for lock files check
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandromumo authored and slint committed May 17, 2024
1 parent b1951f4 commit be1fb87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invenio_app_rdm/records_ui/views/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def view(**kwargs):
kwargs["draft"] = draft
kwargs["files_locked"] = (
record_service.config.lock_edit_published_files(
record_service, g.identity, record=draft._record
record_service, g.identity, draft=draft, record=draft._record
)
)
return f(**kwargs)
Expand Down

0 comments on commit be1fb87

Please sign in to comment.