Fix test helpers: Use actor parameter correctly

This commit is contained in:
Moritz 2026-01-24 01:42:18 +01:00 committed by Simon
parent 875abc693b
commit f993c64c42
Signed by: simon
GPG key ID: 40E7A58C4AA1EDB2
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