frontier icon indicating copy to clipboard operation
frontier copied to clipboard

chore: billing account and subscription management should be done by users with org delete permission

Open anujk14 opened this issue 1 year ago • 2 comments

Currently, some subscription management actions can be performed by users with delete permission on the org, whereas some others allow users with update permission to make subscription changes. For example, currently, users with update permission can purchase a plan, but not change it (using ChangeSubscription API) or cancel it.

This PR tries to bring consistency to billing account and subscription management by allowing only users with org delete permission to manage both.

Current:

  1. Update subscription checks for OrganizationUpdate permission
  2. Create checkout checks for OrganizationUpdate permission

Post this PR:

  1. Update subscription checks for OrganizationDelete permission
  2. Create checkout checks for OrganizationDelete permission

anujk14 avatar Feb 08 '24 09:02 anujk14

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
frontier ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 19, 2024 11:17am

vercel[bot] avatar Feb 08 '24 09:02 vercel[bot]

Pull Request Test Coverage Report for Build 7958692433

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 40.634%

Totals Coverage Status
Change from base Build 7955333769: 0.0%
Covered Lines: 5987
Relevant Lines: 14734

💛 - Coveralls

coveralls avatar Feb 08 '24 09:02 coveralls