Skip to content

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

remove org read check on projects fetch

Maidul Islama5d9abf1c8dc
diff --git a/backend/src/services/org/org-service.ts b/backend/src/services/org/org-service.ts
index 248bab5680..897a8e21fe 100644
--- a/backend/src/services/org/org-service.ts
+++ b/backend/src/services/org/org-service.ts
@@ -144,10 +144,7 @@ export const orgServiceFactory = ({
return members;
};
- const findAllWorkspaces = async ({ actor, actorId, actorOrgId, actorAuthMethod, orgId }: TFindAllWorkspacesDTO) => {
- const { permission } = await permissionService.getOrgPermission(actor, actorId, orgId, actorAuthMethod, actorOrgId);
- ForbiddenError.from(permission).throwUnlessCan(OrgPermissionActions.Read, OrgPermissionSubjects.Workspace);
-
+ const findAllWorkspaces = async ({ actor, actorId, orgId }: TFindAllWorkspacesDTO) => {
const organizationWorkspaceIds = new Set((await projectDAL.find({ orgId })).map((workspace) => workspace.id));
let workspaces: (TProjects & { organization: string } & {