ing
This commit is contained in:
parent
0a6b44c2d2
commit
c1771e586c
|
@ -24,7 +24,7 @@ export class AuthGuard implements CanActivate, CanActivateChild {
|
|||
private cookieService: CookieService,
|
||||
) { }
|
||||
|
||||
canActivate(next: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean> {
|
||||
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean> {
|
||||
return this.store.pipe(
|
||||
select(AuthContainerSelector.selectSignined),
|
||||
map(signined => {
|
||||
|
@ -46,7 +46,7 @@ export class AuthGuard implements CanActivate, CanActivateChild {
|
|||
);
|
||||
}
|
||||
|
||||
canActivateChild(next: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean> {
|
||||
canActivateChild(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean> {
|
||||
return this.store.pipe(
|
||||
select(AuthContainerSelector.selectSignined),
|
||||
map(signined => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user