Ash Policy DSL Syntax Issues - Need Help with authorize_if and policy_group
I'm implementing role-based authorization in an Ash 3.5.42 application but running into compilation errors with the policy DSL. Despite following the documentation examples, I'm getting
- Added
- Tried importing
- Tried
All in all, the authorization framework compiles fine, but the policy DSL functions aren't available.
undefined function authorize_if/1 errors.Current Setup:
Error Message:
error: undefined function authorize_if/1 (there is no such import) error: undefined function actor_attribute_equals/2 (there is no such import)What I've Tried:
- Added
authorizers: [Ash.Policy.Authorizer] to resource- Tried importing
Ash.Policy.Check.Builtins- Tried
use Ash.Policy.AuthorizerDomain Configuration:
All in all, the authorization framework compiles fine, but the policy DSL functions aren't available.
