72541: InfoModule, EndUserAgreementComponent, UserAgreementGuard

This commit is contained in:
Kristof De Langhe
2020-08-19 17:47:33 +02:00
parent f1db0c044b
commit 8768645e4a
24 changed files with 258 additions and 22 deletions

View File

@@ -12,6 +12,7 @@ import { getCommunityModulePath } from '../app-routing.module';
import { CommunityBreadcrumbResolver } from '../core/breadcrumbs/community-breadcrumb.resolver';
import { DSOBreadcrumbsService } from '../core/breadcrumbs/dso-breadcrumbs.service';
import { LinkService } from '../core/cache/builders/link.service';
import { UserAgreementGuard } from '../core/user-agreement/user-agreement.guard';
export const COMMUNITY_PARENT_PARAMETER = 'parent';
@@ -36,7 +37,7 @@ const COMMUNITY_EDIT_PATH = 'edit';
{
path: COMMUNITY_CREATE_PATH,
component: CreateCommunityPageComponent,
canActivate: [AuthenticatedGuard, CreateCommunityPageGuard]
canActivate: [AuthenticatedGuard, CreateCommunityPageGuard, UserAgreementGuard]
},
{
path: ':id',
@@ -49,13 +50,13 @@ const COMMUNITY_EDIT_PATH = 'edit';
{
path: COMMUNITY_EDIT_PATH,
loadChildren: './edit-community-page/edit-community-page.module#EditCommunityPageModule',
canActivate: [AuthenticatedGuard]
canActivate: [AuthenticatedGuard, UserAgreementGuard]
},
{
path: 'delete',
pathMatch: 'full',
component: DeleteCommunityPageComponent,
canActivate: [AuthenticatedGuard],
canActivate: [AuthenticatedGuard, UserAgreementGuard],
},
{
path: '',