Skip to content

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

fix(permission-service): update error message structure for clarity

Victor Hugo dos Santos32bf822329fa
diff --git a/backend/src/ee/services/permission/permission-service.ts b/backend/src/ee/services/permission/permission-service.ts
index a17fee8941..8c3e849267 100644
--- a/backend/src/ee/services/permission/permission-service.ts
+++ b/backend/src/ee/services/permission/permission-service.ts
@@ -435,7 +435,7 @@ export const permissionServiceFactory = ({
};
if (projectDetails.orgId !== actorOrgId) {
- throw new ForbiddenRequestError({ name: "This project does not belong to your selected organization." });
+ throw new ForbiddenRequestError({ message: "This project does not belong to your selected organization." });
}
if (actionProjectType !== ActionProjectType.Any && actionProjectType !== projectDetails.type) {