This commit is contained in:
Peter Maquiran
2022-02-09 14:46:51 +01:00
parent 5c3c9d45ac
commit 506eb3db94
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ export class AuthGuard implements CanActivate {
canActivate(
route: ActivatedRouteSnapshot,
state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree {
// if user not active
if(!SessionStore.user.Inactivity) {
this.router.navigate(['/']);