Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix permission description to match is cloud

Thiago Araujo da Silvaed5fd0516f58
diff --git a/docs/internals/permissions/project-permissions.mdx b/docs/internals/permissions/project-permissions.mdx
index b359ac9604..07a863eadd 100644
--- a/docs/internals/permissions/project-permissions.mdx
+++ b/docs/internals/permissions/project-permissions.mdx
@@ -122,10 +122,10 @@ Supports conditions and permission inversion.
#### Subject: `audit-logs`
-| Action | Description |
-| ------ | --------------------------------------------------------- |
-| `read` | View audit logs of actions performed within the project |
-| `edit` | Choose which audit log event classes the project records |
+| Action | Description |
+| ------ | --------------------------------------------------------------------------------------------------------------------------------- |
+| `read` | View audit logs of actions performed within the project |
+| `edit` | Choose which audit log event classes the project records. If you self-host Infisical, also set how long the project keeps its logs |
#### Subject: `integrations`
diff --git a/frontend/src/pages/project/RoleDetailsBySlugPage/components/ProjectRoleModifySection.utils.tsx b/frontend/src/pages/project/RoleDetailsBySlugPage/components/ProjectRoleModifySection.utils.tsx
index 68b7f31973..c56e2470fc 100644
--- a/frontend/src/pages/project/RoleDetailsBySlugPage/components/ProjectRoleModifySection.utils.tsx
+++ b/frontend/src/pages/project/RoleDetailsBySlugPage/components/ProjectRoleModifySection.utils.tsx
@@ -59,6 +59,7 @@ import {
TPermissionCondition,
TPermissionConditionOperators
} from "@app/context/ProjectPermissionContext/types";
+import { isInfisicalCloud } from "@app/helpers/platform";
import { ProjectType } from "@app/hooks/api/projects/types";
import { TProjectPermission } from "@app/hooks/api/roles/types";
@@ -2689,7 +2690,9 @@ export const PROJECT_PERMISSION_OBJECT: TProjectPermissionObject = {
{
label: "Edit",
value: ProjectPermissionAuditLogsActions.Edit,
- description: "Choose which audit log event classes the project records"
+ description: isInfisicalCloud()
+ ? "Choose which audit log event classes the project records"
+ : "Choose which audit log event classes the project records and how long it keeps its audit logs"
}
]
},