Explorar el Código

checkRoleの判定を修正

develop
sosuke.iwabuchi hace 2 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 => {
if (targetRole === undefined) return true;
return targetRole < role;
return targetRole <= role;
};

useEffect(() => {


Cargando…
Cancelar
Guardar