Mixing read action in `action_type` policy condition with other types; Error instead of filtering
Hi all,
After upgrading to Ash
However, if I break out the first policy into individual policies where
I'd like to think that
A self-contained reproduction:
https://github.com/carlgleisner/policy_repro
After upgrading to Ash
3.7.0 my tests for asserting that actions under policies requiring an actor being present started throwing Ash.Errors.Forbidden for read actions instead of just filtering and warning on :debug.However, if I break out the first policy into individual policies where
action_type gets a single atom for action type instead of a list, no error is thrown and the filtering in my tests occur as previously expected:I'd like to think that
3.7.0 wouldn't introduce a change in the policies logic but I'm very open to it providing improved implementations that catch any of my stupid mistakes A self-contained reproduction:
https://github.com/carlgleisner/policy_repro
GitHub
Contribute to carlgleisner/policy_repro development by creating an account on GitHub.
