From b8496df6aa7424becd3e87c6cfeae7a78dd06851 Mon Sep 17 00:00:00 2001 From: Alexandre Vryghem Date: Wed, 1 Mar 2023 17:02:38 +0100 Subject: [PATCH] Added missing EndUserAgreementCurrentUserGuard guards --- src/app/app-routing.module.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 88f7791b1b..430ebd74ac 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -206,12 +206,13 @@ import { ServerCheckGuard } from './core/server-check/server-check.guard'; { path: 'statistics', loadChildren: () => import('./statistics-page/statistics-page-routing.module') - .then((m) => m.StatisticsPageRoutingModule) + .then((m) => m.StatisticsPageRoutingModule), + canActivate: [EndUserAgreementCurrentUserGuard], }, { path: ACCESS_CONTROL_MODULE_PATH, loadChildren: () => import('./access-control/access-control.module').then((m) => m.AccessControlModule), - canActivate: [GroupAdministratorGuard], + canActivate: [GroupAdministratorGuard, EndUserAgreementCurrentUserGuard], }, { path: '**', pathMatch: 'full', component: ThemedPageNotFoundComponent }, ]