zenstack icon indicating copy to clipboard operation
zenstack copied to clipboard

`auth()` should be resolvable from indirectly imported models

Open ymc9 opened this issue 1 year ago • 0 comments

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.

ymc9 avatar Apr 29 '24 23:04 ymc9