Procházet zdrojové kódy

checkRoleの判定を修正

develop
sosuke.iwabuchi před 2 roky
rodič
revize
3848208658
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      src/contexts/AuthContext.tsx

+ 1
- 1
src/contexts/AuthContext.tsx Zobrazit soubor

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


Načítá se…
Zrušit
Uložit