Closed aidalgol closed 1 month ago
The example code for filter checks on the Policies page includes a comment that reads,
Filter checks don't have a context available to them"
context
But following the link right above that, Ash.Policy.FilterCheck, callback filter is documented as taking three arguments, actor, context, and options.
Ash.Policy.FilterCheck
filter
actor
options
Also, is it correct for this example code snippet to be using expr in the body of filter, or is that only for inline filter-checks?
expr
Thanks for pointing this out :) It is correct for it to be using an expr in the body of the filter, but the other bit is wrong.
The example code for filter checks on the Policies page includes a comment that reads,
But following the link right above that,
Ash.Policy.FilterCheck
, callbackfilter
is documented as taking three arguments,actor
,context
, andoptions
.Also, is it correct for this example code snippet to be using
expr
in the body offilter
, or is that only for inline filter-checks?