From a296c1776e12da72152d847c459d37a53a43973a Mon Sep 17 00:00:00 2001 From: Ivan Gagarinov Date: Wed, 18 Sep 2024 16:00:39 +0500 Subject: [PATCH] update --- server/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/index.mjs b/server/index.mjs index 3b34940..39533f0 100644 --- a/server/index.mjs +++ b/server/index.mjs @@ -121,7 +121,7 @@ const app = async (host, port) => { body, } = c.request.body; const currentUser = getUserByToken(c, state); - if (currentUser) { + if (!currentUser) { return res .status(403) .send({ code: 403, message: 'Forbidden action' })