-
-
Notifications
You must be signed in to change notification settings - Fork 127
Description
Description and expected behavior
in v3 it seems policies do not work well with fields like String[] which in postgres are stored as {}
if i use a policy like @@Allow('all', true)
it works
but if i use @@Allow('all', auth().id = userId)
then i get
Error: [error: syntax error at or near "{"] {
length: 91,
severity: 'ERROR',
code: '42601',
detail: undefined,
hint: undefined,
position: '659',
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'scan.l',
line: '1188',
routine: 'scanner_yyerror'
}
not sure why, since the query is not shown at all even with log set to error and query in zenstack client
changing the column type to Json fixes the issue