Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Cadastrar
Acessar
sosuke.iwabuchi
/
SATE-EasyReceipt-front
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Pull requests
0
Versões
0
Wiki
Atividade
Ver código fonte
checkRoleの判定を修正
develop
sosuke.iwabuchi
2 anos atrás
pai
cfaad1641f
commit
3848208658
1 arquivos alterados
com
1 adições
e
1 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+1
-1
src/contexts/AuthContext.tsx
+ 1
- 1
src/contexts/AuthContext.tsx
Ver arquivo
@@ -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(() => {
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar