Skip to content

Commit

Permalink
Added: last editor to create_submission event hook action (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
signebedi committed Sep 5, 2024
1 parent 5131821 commit aa2f5d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libreforms_fastapi/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1188,6 +1188,7 @@ def run_event_hooks(
data = {}
metadata = {
doc_db.created_by_field: user.username, # Set the creator as the current user
doc_db.last_editor_field: user.username, # Set the last editor as the current user
}

for field_name, field_config in values.items():
Expand Down

0 comments on commit aa2f5d3

Please sign in to comment.