feat(RoleForm): service full access.

This commit is contained in:
a.bouhuolia
2021-12-26 19:09:20 +02:00
parent 49b6deed6d
commit d4138fdf4e
6 changed files with 20 additions and 5 deletions

View File

@@ -66,6 +66,10 @@ export default function useApiRequest() {
if (lockedError) {
setGlobalErrors({ transactionsLocked: { ...lockedError.data } });
}
if (data.errors.find(e => e.type === 'USER_INACTIVE')) {
setGlobalErrors({ userInactive: true });
setLogout();
}
}
return Promise.reject(error);
},