Parcourir la source

checkRoleの判定を修正

develop
sosuke.iwabuchi il y a 2 ans
Parent
révision
3848208658
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      src/contexts/AuthContext.tsx

+ 1
- 1
src/contexts/AuthContext.tsx Voir le fichier

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


Chargement…
Annuler
Enregistrer