fix: don't repor the action as the actor for policy breakdowns

fixes #1441
This commit is contained in:
Zach Daniel 2024-09-07 07:36:24 -04:00
parent 7c1808bd9e
commit 0dde9f0fc1

View file

@ -1550,7 +1550,7 @@ defmodule Ash.Policy.Authorizer do
for_fields: opts[:for_fields],
resource: Map.get(authorizer, :resource),
action: Map.get(authorizer, :action),
actor: Map.get(authorizer, :action),
actor: Map.get(authorizer, :actor),
scenarios: []
)}
else