Skip to content

Commit

Permalink
guard for nil org
Browse files Browse the repository at this point in the history
  • Loading branch information
raycarrick-ed committed Apr 15, 2021
1 parent acd53eb commit b91ca63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/users/invitations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def fix_org_params
hash = org_hash_from_params(params_in: params[:user])
org = OrgSelection::HashToOrgService.to_org(hash: hash,
allow_create: false)
params[:user][:org_id] = org.id
params[:user][:org_id] = org&.id
end

# Override require_no_authentication method defined at DeviseController
Expand Down

0 comments on commit b91ca63

Please sign in to comment.