From 9ea154492c7fea56428b67f87fccf4de50ff38d4 Mon Sep 17 00:00:00 2001 From: adjoly Date: Thu, 23 Oct 2025 17:35:38 +0200 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=F0=9F=94=A8=E3=80=8D=20fix:=20fixed?= =?UTF-8?q?=20some=20things.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/user/gUser.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/api/user/gUser.js b/src/api/user/gUser.js index 6750f75..78e9a71 100644 --- a/src/api/user/gUser.js +++ b/src/api/user/gUser.js @@ -1,9 +1,6 @@ export async function gUser(request, reply, fastify, getUserInfo) { try { const userId = request.params.userId; - if (request.user !== userId && request.user !== 'admin') { - return reply.code(401).send({ error: 'Unauthorized' }); - } if (!getUserInfo.get(userId)) { return reply.code(404).send({ error: "User does not exist" }); }