Ash FrameworkAF
Ash Framework7mo ago
20 replies
kurmetaubanov

Policies don't allow to load relationships

I had simple policies and two resource

if user is superadmin, then he is granted access
if user has location access and permission access, both true, then he is granted access

both resources had same policies, one has_many another

Strangely, Ash.load refused to work

I did a workaround and made a check to combine all three checks together and left only one authorize_if with combined check, that worked.

I think it is a bug
Was this page helpful?