mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 14:33:03 +00:00
72541: InfoModule, EndUserAgreementComponent, UserAgreementGuard
This commit is contained in:
@@ -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: '',
|
||||
|
Reference in New Issue
Block a user