zenstack
zenstack copied to clipboard
`auth()` should be resolvable from indirectly imported models
In V2, declarations are only resolved from directly imported schema files. This is generally fine, except for auth() - you'll need to import the schema containing User or @@auth model in every schema file that uses access policies.