camper/verify/policies_company.sql

11 lines
383 B
PL/PgSQL

-- Verify camper:policies_company on pg
begin;
set search_path to camper, public;
select 1 / count(*) from pg_class where oid = 'company'::regclass and relrowsecurity;
select 1 / count(*) from pg_policy where polname = 'guest_ok' and polrelid = 'company'::regclass;
select 1 / count(*) from pg_policy where polname = 'update_company' and polrelid = 'company'::regclass;
rollback;