From c783fcbfbeaadb543ea1f5f7dd366d8facf4ad95 Mon Sep 17 00:00:00 2001 From: bnymncoskuner Date: Fri, 6 Nov 2020 10:50:32 +0300 Subject: [PATCH] feat: enable redirecting to mvc on manage-profile route --- .../packages/account/src/lib/account-routing.module.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/npm/ng-packs/packages/account/src/lib/account-routing.module.ts b/npm/ng-packs/packages/account/src/lib/account-routing.module.ts index 6883921202..0b80242aab 100644 --- a/npm/ng-packs/packages/account/src/lib/account-routing.module.ts +++ b/npm/ng-packs/packages/account/src/lib/account-routing.module.ts @@ -11,6 +11,7 @@ import { ManageProfileComponent } from './components/manage-profile/manage-profi import { RegisterComponent } from './components/register/register.component'; import { eAccountComponents } from './enums/components'; import { AuthenticationFlowGuard } from './guards/authentication-flow.guard'; +import { ManageProfileGuard } from './guards/manage-profile.guard'; const routes: Routes = [ { path: '', pathMatch: 'full', redirectTo: 'login' }, @@ -43,7 +44,7 @@ const routes: Routes = [ { path: 'manage-profile', component: ReplaceableRouteContainerComponent, - canActivate: [AuthGuard], + canActivate: [AuthGuard, ManageProfileGuard], data: { replaceableComponent: { key: eAccountComponents.ManageProfile,