Files
omnivore/packages/db/migrations/0007.do.read_access_all_user_friends.sql
2022-02-11 09:24:33 -08:00

14 lines
293 B
PL/PgSQL
Executable File

-- Type: DO
-- Name: read_access_all_user_friends
-- Description: Grant read access to user_friends to app role
BEGIN;
DROP POLICY read_user_friends ON omnivore.user_friends;
CREATE POLICY read_all_user_friends ON omnivore.user_friends
FOR SELECT TO omnivore_user
USING(true);
COMMIT;