Skip to content

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

fix: resolves a false org not logged in error

Akhil Mohan6b2eb9c6c9f8
diff --git a/backend/src/services/project/project-service.ts b/backend/src/services/project/project-service.ts
index c8a86f4996..182c467ea9 100644
--- a/backend/src/services/project/project-service.ts
+++ b/backend/src/services/project/project-service.ts
@@ -441,7 +441,12 @@ export const projectServiceFactory = ({
const workspaces = await projectDAL.findAllProjects(actorId, actorOrgId, type);
if (includeRoles) {
- const { permission } = await permissionService.getUserOrgPermission(actorId, actorOrgId, actorAuthMethod);
+ const { permission } = await permissionService.getUserOrgPermission(
+ actorId,
+ actorOrgId,
+ actorAuthMethod,
+ actorOrgId
+ );
// `includeRoles` is specifically used by organization admins when inviting new users to the organizations to avoid looping redundant api calls.
ForbiddenError.from(permission).throwUnlessCan(OrgPermissionActions.Create, OrgPermissionSubjects.Member);