Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

fix: inverted logic

Marc Seitz062c767a8f54
diff --git a/app/(ee)/api/ai/chat/route.ts b/app/(ee)/api/ai/chat/route.ts
index 7e337329..7576e025 100644
--- a/app/(ee)/api/ai/chat/route.ts
+++ b/app/(ee)/api/ai/chat/route.ts
@@ -186,7 +186,7 @@ export async function POST(req: NextRequest) {
);
}
- if (!link?.isArchived) {
+ if (link?.isArchived) {
return NextResponse.json(
{ error: "Link is archived" },
{ status: 403 },