浏览代码

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


正在加载...
取消
保存