Verify, not just test, that company has RLS with policy
This commit is contained in:
parent
3b7d4e0d3e
commit
0b8107748c
|
@ -7,4 +7,7 @@ select company_id
|
|||
from numerus.company_user
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue