Skip to content

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

Remove unused hiddenActions prop from GeneralPermissionPolicies

IgorHortab07a29af475c
diff --git a/frontend/src/pages/project/RoleDetailsBySlugPage/components/GeneralPermissionPolicies.tsx b/frontend/src/pages/project/RoleDetailsBySlugPage/components/GeneralPermissionPolicies.tsx
index 1aade08f1b..61ae9891e9 100644
--- a/frontend/src/pages/project/RoleDetailsBySlugPage/components/GeneralPermissionPolicies.tsx
+++ b/frontend/src/pages/project/RoleDetailsBySlugPage/components/GeneralPermissionPolicies.tsx
@@ -29,8 +29,6 @@ type Props<T extends ProjectPermissionSub> = {
children?: JSX.Element;
isDisabled?: boolean;
onShowAccessTree?: (subject: ProjectPermissionSub) => void;
- /** Action values to hide (e.g. ["create"]). Used to hide options in specific project contexts. */
- hiddenActions?: string[];
};
type ActionProps = {
@@ -76,8 +74,7 @@ export const GeneralPermissionPolicies = <T extends keyof NonNullable<TFormSchem
children,
title,
isDisabled,
- onShowAccessTree,
- hiddenActions = []
+ onShowAccessTree
}: Props<T>) => {
const { control, watch } = useFormContext<TFormSchema>();
const { fields, remove, insert, move } = useFieldArray({
@@ -296,8 +293,6 @@ export const GeneralPermissionPolicies = <T extends keyof NonNullable<TFormSchem
{actions.map(({ label, value }, index) => {
if (typeof value !== "string") return undefined;
- if (hiddenActions.includes(value)) return null;
-
if (
subject === ProjectPermissionSub.Secrets &&
value === "read" &&