Closed
Description
It should throw an error for the below policy:
model User {
id Int @id @default(autoincrement())
email Int
posts Post[]
}
model Post {
id Int @id @default(autoincrement())
author User? @relation(fields: [authorId], references: [id])
authorId Int
@@allow('all', auth().posts.authorId == authorId)
}