Skip to content

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

fix(backend): resolved workspace membership invite failure

akhilmhdhc28d857086fd
diff --git a/backend/src/helpers/membership.ts b/backend/src/helpers/membership.ts
index b06460cde3..b237803f19 100644
--- a/backend/src/helpers/membership.ts
+++ b/backend/src/helpers/membership.ts
@@ -26,7 +26,7 @@ const validateMembership = async ({
membership = await Membership.findOne({
user: userId,
workspace: workspaceId
- });
+ }).populate("workspace");
if (!membership) throw new Error('Failed to find membership');