Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save rajesh-gopidi-webflow/d8d04fce93fa2f448a95f0ea384f677b to your computer and use it in GitHub Desktop.

Select an option

Save rajesh-gopidi-webflow/d8d04fce93fa2f448a95f0ea384f677b to your computer and use it in GitHub Desktop.
Cancel Billing Subscription API Billing Permissions test diff
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