From 952d9541b91bad1146d1033542c0f8dc49513475 Mon Sep 17 00:00:00 2001 From: Nareshkumar Rao Date: Sat, 5 Apr 2025 00:04:56 +0200 Subject: [PATCH] fix --- src/app/blog/write/action.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/blog/write/action.ts b/src/app/blog/write/action.ts index 9ddb98e..2a9ee67 100644 --- a/src/app/blog/write/action.ts +++ b/src/app/blog/write/action.ts @@ -14,7 +14,7 @@ export async function savePostServer( is_draft: boolean, existingSlug?: string ) { - if ((await auth())?.user != null) { + if ((await auth())?.user == null) { throw new Error("Not authenticated"); }