Add RLS permissions on the label table

This commit is contained in:
Jackson Harper 2022-03-30 11:33:57 -07:00
parent 1c4ca835d3
commit 57a45adb5d
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,11 @@
-- Type: DO
-- Name: grant_update_rls_on_labels
-- Description: Add RLS update permission to the labels table
BEGIN;
CREATE POLICY update_labels on omnivore.labels
FOR UPDATE TO omnivore_user
WITH CHECK (true);
COMMIT;

View file

@ -0,0 +1,9 @@
-- Type: UNDO
-- Name: grant_update_rls_on_labels
-- Description: Add RLS update permission to the labels table
BEGIN;
DROP POLICY update_labels on omnivore.labels ;
COMMIT;