continue work on opening chat from expediente

This commit is contained in:
tiago.kayaya
2021-12-10 10:32:49 +01:00
parent 89c3db663b
commit 3b34057559
10 changed files with 144 additions and 37 deletions
+4 -3
View File
@@ -12,13 +12,14 @@ export class AuthGuard implements CanActivate {
private router:Router,
private localstoreService: LocalstoreService
){}
canActivate(
route: ActivatedRouteSnapshot,
state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree {
if(!SessionStore.user.Inactivity) {
this.router.navigate(['/']);
return false
}
else if(!SessionStore.exist) {
this.router.navigate(['/']);
@@ -27,5 +28,5 @@ export class AuthGuard implements CanActivate {
return true
}
}
}