Skip to content

Commit ff19e8d

Browse files
committed
Set current_user when creating a patient from a consent form
This ensures that the user will show in the school move audit log improving accuracy of the log.
1 parent a975479 commit ff19e8d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/consent_forms_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def create_patient
105105
)
106106
end
107107

108-
school_move.confirm!
108+
school_move.confirm!(user: current_user)
109109

110110
@consent_form.match_with_patient!(patient, current_user:)
111111
end

0 commit comments

Comments
 (0)