From 905df9cb9bdcf2d90b59f1382071fd330f333d02 Mon Sep 17 00:00:00 2001 From: qkrxogmla Date: Tue, 20 May 2025 03:05:43 +0900 Subject: [PATCH 1/2] =?UTF-8?q?admin=EC=95=84=EB=8B=88=EB=A9=B4login?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=80=EB=A1=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/RequireAdmin.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/RequireAdmin.jsx b/frontend/src/components/RequireAdmin.jsx index becbb4d..ef87dff 100644 --- a/frontend/src/components/RequireAdmin.jsx +++ b/frontend/src/components/RequireAdmin.jsx @@ -4,7 +4,7 @@ const RequireAdmin = ({ children }) => { const user = JSON.parse(localStorage.getItem("user")); if (!user) return ; - if (user.role !== "ADMIN") return ; + if (user.role !== "ADMIN") return ; return children; }; From f274e00176fe82787bda7deba4637c2acb771580 Mon Sep 17 00:00:00 2001 From: qkrxogmla Date: Tue, 20 May 2025 03:10:23 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=EC=9B=B9=EC=82=AC=EC=9D=B4=ED=8A=B8=20?= =?UTF-8?q?=ED=83=80=EC=9D=B4=ED=8B=80=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 79c4701..eadd9cb 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -2,9 +2,9 @@ - + - Vite + React + pirocheck