Skip to content

Commit

Permalink
fix: set authorize? properly when creating balances
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Aug 3, 2024
1 parent 09b8946 commit bd75d6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/transfer/changes/verify_transfer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ defmodule AshDoubleEntry.Transfer.Changes.VerifyTransfer do
:upsert_balance,
Ash.Context.to_opts(context,
domain: changeset.domain,
authorize?: authorize?(changeset.domain),
upsert_fields: [:balance],
return_errors?: true,
stop_on_error?: true
Expand Down

0 comments on commit bd75d6c

Please sign in to comment.