Commit 05a0a56b authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #17436 TIME 0:10 check if user if out of perimeter

parent 52df0703
......@@ -430,6 +430,15 @@ export class UserComponent implements OnInit {
this.user['groups'].splice(indexToDelete, 1);
this.notificationService.success('lang.groupDeleted');
this.authService.updateUserInfoWithTokenRefresh();
this.http.get(`../rest/users/${this.user.id}`).pipe(
tap(() => {}),
catchError((err: any) => {
if (err.error.errors === 'User out of perimeter') {
this.router.navigate(['/administration/users']);
}
return of(false);
})
).subscribe();
},
error: err => {
this.notificationService.handleErrors(err);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment