Skip to content

Commit

Permalink
moderation: fix record review submit flow
Browse files Browse the repository at this point in the history
  • Loading branch information
slint committed Nov 5, 2024
1 parent 19d05f7 commit c51335a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/zenodo_rdm/moderation/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def run(self, identity, draft=None, record=None, uow=None):
if identity == system_identity:
# Use the owner of the record as the user for moderation actions
if isinstance(record, records_service.record_cls):
user_id = record.parent.access.owned_by.user
user_id = record.parent.access.owned_by.owner_id
else:
user_id = identity.id
if user_id is None:
Expand Down

0 comments on commit c51335a

Please sign in to comment.