Files
omnivore/packages/db/migrations/0173.do.alter_labels_table_policy.sql
2024-04-16 11:41:19 +08:00

12 lines
250 B
PL/PgSQL
Executable File

-- Type: DO
-- Name: alter_labels_table_policy
-- Description: Alter labels table select policy to check user_id
BEGIN;
ALTER POLICY read_labels ON omnivore.labels
TO omnivore_user
USING (user_id = omnivore.get_current_user_id());
COMMIT;