Pārlūkot izejas kodu

checkRoleの判定を修正

develop
sosuke.iwabuchi pirms 2 gadiem
vecāks
revīzija
3848208658
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      src/contexts/AuthContext.tsx

+ 1
- 1
src/contexts/AuthContext.tsx Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt