This website works better with JavaScript.
首頁
探索
說明
註冊
登入
sosuke.iwabuchi
/
SATE-EasyReceipt-front
關註
1
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
checkRoleの判定を修正
develop
sosuke.iwabuchi
2 年之前
父節點
cfaad1641f
當前提交
3848208658
共有
1 個文件被更改
,包括
1 次插入
和
1 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+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(() => {
Write
Preview
Loading…
取消
儲存