Skip to content

Commit

Permalink
fix: Use admin:subscription:get auth guard for Stripe checkout sess…
Browse files Browse the repository at this point in the history
…ion (#564)

Signed-off-by: jay-dee7 <me@jsdp.dev>
  • Loading branch information
jay-dee7 authored Jul 31, 2024
1 parent 8c6a969 commit fc631e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/middleware/auth/routes/admin/admin-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class AdminAuthRuleProvider extends AuthRuleProvider {
skipNamespace: true,
});
this.registerRule('/admin/subscription/get', 'GET', 'admin:subscription:get', { skipNamespace: true });
this.registerRule('/admin/checkout/session/(.*)', 'GET', '', { skipNamespace: true });
this.registerRule('/admin/checkout/session/(.*)', 'GET', 'admin:subscription:get', { skipNamespace: true });
// Prices
this.registerRule('/admin/price/list', 'GET', 'admin:price:list', { skipNamespace: true });

Expand Down

0 comments on commit fc631e4

Please sign in to comment.