Remove defaultAuthStatus from all environment configurations.

This commit is contained in:
2025-08-23 20:13:59 +02:00
parent de1876c90c
commit da17cf9696
6 changed files with 2 additions and 14 deletions
-4
View File
@@ -2,7 +2,6 @@ import {Injectable} from '@angular/core';
import {ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot, UrlTree} from '@angular/router';
import {Observable} from 'rxjs';
import {AuthService} from '@services/auth.service';
import {environment} from '@environment';
@Injectable({
providedIn: 'root'
@@ -19,9 +18,6 @@ export class AuthGuard implements CanActivate {
route: ActivatedRouteSnapshot,
state: RouterStateSnapshot
): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree {
if (environment.defaultAuthStatus) {
return true;
}
if (!this.authService.checkAuthStatus()) {
return this.router.createUrlTree(['/']);
}