From 0809ea3534311dee370d102f8af6f694e6770053 Mon Sep 17 00:00:00 2001 From: Per-Arne Andersen Date: Sun, 19 Jul 2020 19:51:47 +0200 Subject: [PATCH] * Fixes auth issue #18 --- wg_dashboard_frontend/src/app/page/page-routing.module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wg_dashboard_frontend/src/app/page/page-routing.module.ts b/wg_dashboard_frontend/src/app/page/page-routing.module.ts index 6e4bb68..e006aa2 100644 --- a/wg_dashboard_frontend/src/app/page/page-routing.module.ts +++ b/wg_dashboard_frontend/src/app/page/page-routing.module.ts @@ -16,7 +16,7 @@ const routes: Routes = [ }, { path: 'user', component: LayoutComponent, children: [ - { path: 'edit', component: EditComponent, pathMatch: 'full' }, + { path: 'edit', component: EditComponent, pathMatch: 'full', canActivate: [AuthGuard]}, { path: 'login', component: LoginComponent, pathMatch: 'full' }, ], },