Ash FrameworkAF
Ash Framework8mo ago
6 replies
Ahrou

Actor attribute in relationship filter expression is NULL

I have an Actor Resource that has a project_id attribute and it has been used successfully in policies many times.

But for some reason in this relationship it is always NULL:

has_many :users, Auth.User do
      filter expr(^actor(:project_id) == project_id)
    end


This is the query where:

WHERE (NULL::bigint = u0."project_id"::bigint::bigint)


Does the ^actor template not work the same in relationship and policies expressions?
Solution
Can I see the code where you're doing that? Are you specifying the actor theere?
Was this page helpful?