This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
sosuke.iwabuchi
/
SATE-EasyReceipt-front
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
checkRoleの判定を修正
develop
sosuke.iwabuchi
2 years ago
parent
cfaad1641f
commit
3848208658
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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(() => {
Write
Preview
Loading…
Cancel
Save