Enforce RLS when user opted in to MFA. (#188)
* Allow Super Admin to view tables using RLS * Replace previous usages of the Admin client using the authed client using the new RLS * Enforce MFA for Super Admin users * Enforce RLS when user opted in to MFA. * Add Super Admin Access Policies and Update Database Types * Consolidate super admin logic into a single function that uses the RPC is_super_admin * Added Super Admin E2E tests * Fixes and improvements * Bump version to 2.5.0
This commit is contained in:
committed by
GitHub
parent
9cf7bf0aac
commit
131b1061e6
@@ -130,7 +130,7 @@ SELECT is(
|
||||
'The subscription status should be past_due'
|
||||
);
|
||||
|
||||
select tests.authenticate_as('member');
|
||||
select makerkit.authenticate_as('member');
|
||||
|
||||
SELECT row_eq(
|
||||
$$ select count(*) from subscription_items where subscription_id = 'sub_test' $$,
|
||||
@@ -150,7 +150,7 @@ SELECT is(
|
||||
'The subscription should be active'
|
||||
);
|
||||
|
||||
select tests.authenticate_as('member');
|
||||
select makerkit.authenticate_as('member');
|
||||
|
||||
-- account can read their own subscription
|
||||
select isnt_empty(
|
||||
@@ -171,7 +171,7 @@ select is(
|
||||
|
||||
-- foreigners
|
||||
select tests.create_supabase_user('foreigner');
|
||||
select tests.authenticate_as('foreigner');
|
||||
select makerkit.authenticate_as('foreigner');
|
||||
|
||||
-- account cannot read other's subscription
|
||||
select is_empty(
|
||||
|
||||
Reference in New Issue
Block a user