Skip to content

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

var rename

Matheus Nogueira3f2d185c512b
diff --git a/backend/src/services/secret-sharing/secret-sharing-service.ts b/backend/src/services/secret-sharing/secret-sharing-service.ts
index cfd4ca2375..f49bf26529 100644
--- a/backend/src/services/secret-sharing/secret-sharing-service.ts
+++ b/backend/src/services/secret-sharing/secret-sharing-service.ts
@@ -113,9 +113,9 @@ export const secretSharingServiceFactory = ({
if (!actorId) {
throw new UnauthorizedError({ message: "Authentication required to view this secret" });
}
- const customerOrgs = await orgDAL.listOrganizationsWithSubOrgs({ actorId });
+ const actorOrgs = await orgDAL.listOrganizationsWithSubOrgs({ actorId });
const accessibleOrgIds = new Set(
- customerOrgs.flatMap((org) => [org.id, ...org.subOrganizations.map((s: { id: string }) => s.id)])
+ actorOrgs.flatMap((org) => [org.id, ...org.subOrganizations.map((s: { id: string }) => s.id)])
);
if (!accessibleOrgIds.has(secretOrgId)) {
throw new ForbiddenRequestError({ message: "You do not have access to this secret" });