Merge branch 'developer' of https://bitbucket.org/equilibriumito/gabinete-digital into feature/autologinchat

This commit is contained in:
tiago.kayaya
2022-02-08 15:33:44 +01:00
51 changed files with 2060 additions and 1498 deletions
+2
View File
@@ -19,10 +19,12 @@ export class AuthGuard implements CanActivate {
route: ActivatedRouteSnapshot,
state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree {
// if user not active
if(!SessionStore.user.Inactivity) {
this.router.navigate(['/']);
return false
}
// if session doesn't exit
else if(!SessionStore.exist) {
this.router.navigate(['/']);
return false