camper/verify/company_user.sql

14 lines
332 B
MySQL
Raw Normal View History

-- Verify camper:company_user on pg
begin;
select company_id
, user_id
from camper.company_user
where false;
select 1 / count(*) from pg_class where oid = 'camper.company'::regclass and relrowsecurity;
select 1 / count(*) from pg_policy where polname = 'company_policy' and polrelid = 'camper.company'::regclass;
rollback;