Przeglądaj źródła

checkRoleの判定を修正

develop
sosuke.iwabuchi 2 lat temu
rodzic
commit
3848208658
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      src/contexts/AuthContext.tsx

+ 1
- 1
src/contexts/AuthContext.tsx Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz