Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dzencot committed Sep 18, 2024
1 parent 150f384 commit a296c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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' })
Expand Down

0 comments on commit a296c17

Please sign in to comment.