From 38482086585296e1751015712580da93d7b0d789 Mon Sep 17 00:00:00 2001 From: "sosuke.iwabuchi" Date: Fri, 12 May 2023 11:13:25 +0900 Subject: [PATCH] =?UTF-8?q?checkRole=E3=81=AE=E5=88=A4=E5=AE=9A=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/contexts/AuthContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contexts/AuthContext.tsx b/src/contexts/AuthContext.tsx index c9bcdeb..d8863f0 100644 --- a/src/contexts/AuthContext.tsx +++ b/src/contexts/AuthContext.tsx @@ -95,7 +95,7 @@ function AuthContextProvider({ children }: Props) { const checkRole = (targetRole?: UserRole): boolean => { if (targetRole === undefined) return true; - return targetRole < role; + return targetRole <= role; }; useEffect(() => {