14 lines
293 B
PL/PgSQL
Executable File
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;
|