Преглед изворни кода

checkRoleの判定を修正

develop
sosuke.iwabuchi пре 2 година
родитељ
комит
3848208658
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      src/contexts/AuthContext.tsx

+ 1
- 1
src/contexts/AuthContext.tsx Прегледај датотеку

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


Loading…
Откажи
Сачувај