VScode throws an inline error here.
| @@allow('all', auth() == author) |
The solution is to define the @@auth attribute on the User
datasourcedb {provider= 'sqlite'url= 'file:.dev.db'}modelUser {idInt@id@default(autoincrement())postsPost[]@@auth}modelPost {idInt@id@default(autoincrement())titleStringauthorUser@relation(fields: [authorId], references: [id])authorIdInt@@allow('all', auth() == author)}I will hold off submitting a PR since this is only an issue in the VScode plugin, but it could throw off any users trying to follow the docs.
VScode throws an inline error here.
zenstack-docs/docs/the-complete-guide/part2/3-writing-plugins.md
Line 55 in b37c4f7
The solution is to define the
@@authattribute on theUserI will hold off submitting a PR since this is only an issue in the VScode plugin, but it could throw off any users trying to follow the docs.