Created
November 5, 2024 00:48
-
-
Save rajesh-gopidi-webflow/d8d04fce93fa2f448a95f0ea384f677b to your computer and use it in GitHub Desktop.
Cancel Billing Subscription API Billing Permissions test diff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/entrypoints/dashboard/client/src/components/Checkout/Wrappers/PermissionWrapper.jsx b/entrypoints/dashboard/client/src/components/Checkout/Wrappers/PermissionWrapper.jsx | |
| index 33a5a7496877..b65f92a7f5e7 100644 | |
| --- a/entrypoints/dashboard/client/src/components/Checkout/Wrappers/PermissionWrapper.jsx | |
| +++ b/entrypoints/dashboard/client/src/components/Checkout/Wrappers/PermissionWrapper.jsx | |
| @@ -27,7 +27,5 @@ export const PermissionWrapper = (props) => { | |
| canAccess = false; | |
| } | |
| - return canAccess | |
| - ? props.children | |
| - : 'You do not have permission to perform this action. Please contact your workspace admin.'; | |
| + return props.children; | |
| }; | |
| diff --git a/entrypoints/dashboard/client/src/pages/Workspaces/Plans/utils.jsx b/entrypoints/dashboard/client/src/pages/Workspaces/Plans/utils.jsx | |
| index 05163a592ffd..0c5b38c7e65b 100644 | |
| --- a/entrypoints/dashboard/client/src/pages/Workspaces/Plans/utils.jsx | |
| +++ b/entrypoints/dashboard/client/src/pages/Workspaces/Plans/utils.jsx | |
| @@ -232,15 +232,15 @@ export function canDowngradeWorkspace({ | |
| ); | |
| } | |
| - if (hasTooManyMembers) { | |
| - downgradeWarnings[planFamily].push( | |
| - getWorkspaceDowngradeWarning( | |
| - DOWNGRADE_WARNINGS.MANY_MEMBERS, | |
| - newPlan, | |
| - workspace | |
| - ) | |
| - ); | |
| - } | |
| + // if (hasTooManyMembers) { | |
| + // downgradeWarnings[planFamily].push( | |
| + // getWorkspaceDowngradeWarning( | |
| + // DOWNGRADE_WARNINGS.MANY_MEMBERS, | |
| + // newPlan, | |
| + // workspace | |
| + // ) | |
| + // ); | |
| + // } | |
| if (hasTooManySites) { | |
| downgradeWarnings[planFamily].push( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment