Merge Angular 16 Irish Monitor to develop #33
|
@ -38,6 +38,6 @@ export class AdminDashboardGuard {
|
|||
}
|
||||
|
||||
canActivateChild(childRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree {
|
||||
return this.check(state.url, childRoute.params.stakeholder);
|
||||
return this.check(state.url, childRoute.data?.stakeholder?childRoute.data.stakeholder:childRoute.params.stakeholder);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue