瀏覽代碼

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…
取消
儲存