diff --git a/ui/components/roles/workflow/forms/add-role-form.tsx b/ui/components/roles/workflow/forms/add-role-form.tsx index 92c62c6d21..681e658657 100644 --- a/ui/components/roles/workflow/forms/add-role-form.tsx +++ b/ui/components/roles/workflow/forms/add-role-form.tsx @@ -136,10 +136,15 @@ export const AddRoleForm = ({ const permissions = [ { field: "manage_users", label: "Invite and Manage Users" }, - { field: "manage_account", label: "Manage Account" }, - { field: "manage_billing", label: "Manage Billing" }, + ...(process.env.NEXT_PUBLIC_IS_CLOUD_ENV === "true" + ? [ + { field: "manage_account", label: "Manage Account" }, + { field: "manage_billing", label: "Manage Billing" }, + ] + : []), { field: "manage_providers", label: "Manage Cloud Providers" }, - { field: "manage_integrations", label: "Manage Integrations" }, + // TODO: Add back when we have integrations ready + // { field: "manage_integrations", label: "Manage Integrations" }, { field: "manage_scans", label: "Manage Scans" }, { field: "unlimited_visibility", label: "Unlimited Visibility" }, ]; diff --git a/ui/components/roles/workflow/forms/edit-role-form.tsx b/ui/components/roles/workflow/forms/edit-role-form.tsx index d837cbe3cd..e47c62be3d 100644 --- a/ui/components/roles/workflow/forms/edit-role-form.tsx +++ b/ui/components/roles/workflow/forms/edit-role-form.tsx @@ -159,10 +159,15 @@ export const EditRoleForm = ({ const permissions = [ { field: "manage_users", label: "Invite and Manage Users" }, - { field: "manage_account", label: "Manage Account" }, - { field: "manage_billing", label: "Manage Billing" }, + ...(process.env.NEXT_PUBLIC_IS_CLOUD_ENV === "true" + ? [ + { field: "manage_account", label: "Manage Account" }, + { field: "manage_billing", label: "Manage Billing" }, + ] + : []), { field: "manage_providers", label: "Manage Cloud Providers" }, - { field: "manage_integrations", label: "Manage Integrations" }, + // TODO: Add back when we have integrations ready + // { field: "manage_integrations", label: "Manage Integrations" }, { field: "manage_scans", label: "Manage Scans" }, { field: "unlimited_visibility", label: "Unlimited Visibility" }, ];