Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix: update access check for projects api (#6428)

Steffen Schmitz663d67cbd62b
diff --git a/web/src/pages/api/public/projects.ts b/web/src/pages/api/public/projects.ts
index 92fe5f3e31..87ff6fee1f 100644
--- a/web/src/pages/api/public/projects.ts
+++ b/web/src/pages/api/public/projects.ts
@@ -22,7 +22,7 @@ export default async function handler(
message: authCheck.error,
});
}
- if (authCheck.scope.accessLevel === "project" || !authCheck.scope.projectId) {
+ if (authCheck.scope.accessLevel !== "project" || !authCheck.scope.projectId) {
return res
.status(403)
.json({ message: "Invalid API key. Are you using an organization key?" });