Fix test helpers: Use actor parameter correctly

This commit is contained in:
Moritz 2026-01-24 01:42:18 +01:00
parent 94b6fe281d
commit f1626a3beb
Signed by: moritz
GPG key ID: 1020A035E5DD0824
3 changed files with 25 additions and 19 deletions

View file

@ -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