Skip to content

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

change reason to match other reasons

adilson0aaa092bf326
diff --git a/backend/src/services/identity-ua/identity-ua-service.ts b/backend/src/services/identity-ua/identity-ua-service.ts
index 361214457a..01ede2f06e 100644
--- a/backend/src/services/identity-ua/identity-ua-service.ts
+++ b/backend/src/services/identity-ua/identity-ua-service.ts
@@ -264,7 +264,7 @@ export const identityUaServiceFactory = ({
if (!subOrgMembership) {
throw new UnauthorizedError({
message: `Identity not authorized to access sub organization ${organizationSlug}`,
- detail: { reason: "sub_org_not_authorized", identityId: identityUa.identityId, orgId: identity.orgId }
+ detail: { reason: "sub_org_unauthorized", identityId: identityUa.identityId, orgId: identity.orgId }
});
}