Browse Source

checkRoleの判定を修正

develop
sosuke.iwabuchi 2 years ago
parent
commit
3848208658
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/contexts/AuthContext.tsx

+ 1
- 1
src/contexts/AuthContext.tsx View File

@@ -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…
Cancel
Save