Explorar el Código

checkRoleの判定を修正

develop
sosuke.iwabuchi hace 3 años
padre
commit
3848208658
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      src/contexts/AuthContext.tsx

+ 1
- 1
src/contexts/AuthContext.tsx Ver fichero

@@ -95,7 +95,7 @@ function AuthContextProvider({ children }: Props) {


const checkRole = (targetRole?: UserRole): boolean => { const checkRole = (targetRole?: UserRole): boolean => {
if (targetRole === undefined) return true; if (targetRole === undefined) return true;
return targetRole < role;
return targetRole <= role;
}; };


useEffect(() => { useEffect(() => {


Cargando…
Cancelar
Guardar