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(() => {