chore(rbac): tweaks role permissions (#6496)

This commit is contained in:
Pablo Lara
2025-01-14 10:23:23 +01:00
committed by GitHub
parent ab844eee3f
commit 6953fcf6b5
2 changed files with 16 additions and 6 deletions
@@ -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" },
];
@@ -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" },
];