Fix test helpers: Use actor parameter correctly
This commit is contained in:
parent
94b6fe281d
commit
f1626a3beb
3 changed files with 25 additions and 19 deletions
|
|
@ -178,7 +178,7 @@ defmodule Mv.Fixtures do
|
|||
|> Ash.update(actor: system_actor)
|
||||
|
||||
# Reload user with role preloaded (critical for authorization!)
|
||||
{:ok, user_with_role} = Ash.load(user, :role, domain: Mv.Accounts)
|
||||
{:ok, user_with_role} = Ash.load(user, :role, domain: Mv.Accounts, actor: system_actor)
|
||||
user_with_role
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue