mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
canActivateChild implementation (#2691)
This commit is contained in:
committed by
Eugenio Romano
parent
4fbd9f5d62
commit
39737b3df6
@@ -43,6 +43,10 @@ export class AuthGuardEcm implements CanActivate {
|
||||
.catch(() => false);
|
||||
}
|
||||
|
||||
canActivateChild(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean> {
|
||||
return this.canActivate(route, state);
|
||||
}
|
||||
|
||||
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean> {
|
||||
|
||||
return this.isLoggedIn().then(isLoggedIn => {
|
||||
|
Reference in New Issue
Block a user