Added missing EndUserAgreementCurrentUserGuard guards

This commit is contained in:
Alexandre Vryghem
2023-03-01 17:02:38 +01:00
parent e4f483c308
commit b8496df6aa

View File

@@ -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 },
]