mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
11 lines
250 B
PL/PgSQL
Executable file
11 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;
|