Skip to content

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

feat: corrected error message

=ce846fb350ea
diff --git a/backend/src/ee/services/permission/permission-service.ts b/backend/src/ee/services/permission/permission-service.ts
index c90598b096..9b72f2ac46 100644
--- a/backend/src/ee/services/permission/permission-service.ts
+++ b/backend/src/ee/services/permission/permission-service.ts
@@ -196,7 +196,7 @@ export const permissionServiceFactory = ({
}
if (orgId !== actorOrgId) {
- throw new ForbiddenRequestError({ name: "You are not logged into this organization" });
+ throw new ForbiddenRequestError({ name: "You are not allowed to access organization resource" });
}
const permissionData = await permissionDAL.getPermission({
@@ -344,7 +344,7 @@ export const permissionServiceFactory = ({
});
if (projectDetails.orgId !== actorOrgId) {
- throw new ForbiddenRequestError({ name: "You are not logged into this organization" });
+ throw new ForbiddenRequestError({ name: "This project does not belong to your selected organization." });
}
if (actionProjectType !== ActionProjectType.Any && actionProjectType !== projectDetails.type) {