mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
continue work on opening chat from expediente
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user