Closed
Description
It shows ACCESS_POLICY_VIOLATION error when trying to update authorId
.
model Post {
id Int @id() @default(autoincrement())
title String
content String?
author User? @relation(fields: [authorId], references: [id])
authorId Int? @allow('update', true, true)
@@allow('read', true)
}
It works if adding an arbitrary update policy that never fulfill like @@allow('update', content == "123")