Skip to content

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

fix: when projects are queued for deletion, hide them and block access from UI (#7809)

Marc Klingencb032047d3b7
diff --git a/web/src/server/auth.ts b/web/src/server/auth.ts
index 7637e01bba..8ed60a231b 100644
--- a/web/src/server/auth.ts
+++ b/web/src/server/auth.ts
@@ -480,7 +480,13 @@ export async function getAuthOptions(): Promise<NextAuthOptions> {
include: {
organization: {
include: {
- projects: true,
+ projects: {
+ where: {
+ deletedAt: {
+ equals: null,
+ },
+ },
+ },
},
},
ProjectMemberships: {