mirror of
https://github.com/ash-project/ash.git
synced 2024-09-19 13:03:02 +12:00
fix: fallback to authorize_with
when authorizing bulk destroy actions
This commit is contained in:
parent
c2ac47e21e
commit
dcb69882df
1 changed files with 1 additions and 1 deletions
|
@ -1145,7 +1145,7 @@ defmodule Ash.Actions.Destroy.Bulk do
|
|||
on_must_pass_strict_check:
|
||||
{:error, %Ash.Error.Forbidden.InitialDataRequired{source: changeset}},
|
||||
run_queries?: false,
|
||||
filter_with: opts[:authorize_changeset_with] || :filter,
|
||||
filter_with: opts[:authorize_changeset_with] || opts[:authorize_with] || :filter,
|
||||
alter_source?: true,
|
||||
base_query: query
|
||||
) do
|
||||
|
|
Loading…
Reference in a new issue