camper/verify/grant_select_on_payment_sta...

20 lines
459 B
MySQL
Raw Normal View History

-- Verify camper:grant_select_on_payment_status_to_guest on pg
begin;
select 1 / count(*) from information_schema.table_privileges
where table_schema = 'camper'
and table_name = 'payment_status'
and grantee = 'guest'
and privilege_type = 'SELECT'
;
select 1 / count(*) from information_schema.table_privileges
where table_schema = 'camper'
and table_name = 'payment_status_i18n'
and grantee = 'guest'
and privilege_type = 'SELECT'
;
rollback;