ソースを参照

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


読み込み中…
キャンセル
保存