Skip to content

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

update getAllAccessibleEnvironmentsOfWorkspace controller

Maidul Islam61c17ccc5eb9
diff --git a/backend/src/controllers/v2/environmentController.ts b/backend/src/controllers/v2/environmentController.ts
index 4f028b1f71..7a0d5e1c5e 100644
--- a/backend/src/controllers/v2/environmentController.ts
+++ b/backend/src/controllers/v2/environmentController.ts
@@ -250,8 +250,8 @@ export const getAllAccessibleEnvironmentsOfWorkspace = async (
return
} else {
accessibleEnvironments.push({
- environmentDetails: environment,
- // readDenied: isReadBlocked,
+ name: environment.name,
+ slug: environment.slug,
isWriteDenied: isWriteBlocked
})
}