Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Registrati
Accedi
sosuke.iwabuchi
/
SATE-EasyReceipt-front
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Pull Requests
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
checkRoleの判定を修正
develop
sosuke.iwabuchi
2 anni fa
parent
cfaad1641f
commit
3848208658
1 ha cambiato i file
con
1 aggiunte
e
1 eliminazioni
Visualizzazione separata
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/contexts/AuthContext.tsx
+ 1
- 1
src/contexts/AuthContext.tsx
Vedi 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…
Annulla
Salva