Verify, not just test, that company has RLS with policy

This commit is contained in:
jordi fita mas 2023-01-28 13:10:30 +01:00
parent 3b7d4e0d3e
commit 0b8107748c
1 changed files with 3 additions and 0 deletions

View File

@ -7,4 +7,7 @@ select company_id
from numerus.company_user from numerus.company_user
where false; where false;
select 1 / count(*) from pg_class where oid = 'numerus.company'::regclass and relrowsecurity;
select 1 / count(*) from pg_policy where polname = 'company_policy' and polrelid = 'numerus.company'::regclass;
rollback; rollback;