frontier
frontier copied to clipboard
chore: billing account and subscription management should be done by users with org delete permission
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:
- Update subscription checks for
OrganizationUpdate
permission - Create checkout checks for
OrganizationUpdate
permission
Post this PR:
- Update subscription checks for
OrganizationDelete
permission - Create checkout checks for
OrganizationDelete
permission
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 |
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 | |
---|---|
Change from base Build 7955333769: | 0.0% |
Covered Lines: | 5987 |
Relevant Lines: | 14734 |