Skip to content

Commit bc4057f

Browse files
committed
chore: allow retool write to read organization
1 parent f311655 commit bc4057f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • packages/db/prisma/migrations/20250711204234_add_read_permission_for_where_clause_on_retool_role
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
DO $$
2+
BEGIN
3+
IF EXISTS (SELECT 1 FROM pg_roles WHERE rolname = 'retool_write') THEN
4+
-- Grant SELECT permission (needed for WHERE clause)
5+
GRANT SELECT ON "Organization" TO retool_write;
6+
END IF;
7+
END
8+
$$;

0 commit comments

Comments
 (0)