Use user level security on labels update

This commit is contained in:
Jackson Harper 2022-03-30 11:56:06 -07:00
parent 57a45adb5d
commit bb91396595

View file

@ -6,6 +6,6 @@ BEGIN;
CREATE POLICY update_labels on omnivore.labels
FOR UPDATE TO omnivore_user
WITH CHECK (true);
USING (user_id = omnivore.get_current_user_id());
COMMIT;