Merge branch 'feature/partner' of https://gitlab.eascs.com/tms-ui/tms-obc-web into feature/partner
This commit is contained in:
		| @ -30,7 +30,7 @@ export class AuthGuard extends ACLGuard { | ||||
|   } | ||||
|  | ||||
|   canActivateChild(childRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean> { | ||||
|     if (childRoute.routeConfig?.loadChildren) { | ||||
|     if (childRoute.routeConfig?.loadChildren || childRoute.routeConfig?.children) { | ||||
|       return super.canActivateChild(childRoute, state); | ||||
|     } else { | ||||
|       return this.handle(childRoute, state, 2, this.settingRoute(childRoute.params, state.url)); | ||||
| @ -38,6 +38,8 @@ export class AuthGuard extends ACLGuard { | ||||
|   } | ||||
|  | ||||
|   private handle(route: ActivatedRouteSnapshot, state: RouterStateSnapshot, type: 1 | 2, router?: string): Observable<boolean> { | ||||
|     console.log(route, state); | ||||
|  | ||||
|     if (!router) { | ||||
|       return type === 1 ? super.canActivate(route, state) : super.canActivateChild(route, state); | ||||
|     } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user