Skip to content

Commit

Permalink
Fixes #37014 - set correct Host owner during registration
Browse files Browse the repository at this point in the history
  • Loading branch information
nofaralfasi authored and chris1984 committed Jan 16, 2024
1 parent 9e3e5ca commit 4439004
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def prepare_host
fail ActiveRecord::RecordNotFound, msg
end
@host.assign_attributes(host_params('host'))
@host.owner = User.current
@host.save!
else
super
Expand Down

0 comments on commit 4439004

Please sign in to comment.