mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 13:01:56 +00:00
chore(rbac): tweaks role permissions (#6496)
This commit is contained in:
@@ -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" },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user