diff options
Diffstat (limited to 'client/src/app/videos/+video-edit')
-rw-r--r-- | client/src/app/videos/+video-edit/video-add-routing.module.ts | 3 | ||||
-rw-r--r-- | client/src/app/videos/+video-edit/video-update-routing.module.ts | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/client/src/app/videos/+video-edit/video-add-routing.module.ts b/client/src/app/videos/+video-edit/video-add-routing.module.ts index 9e8fa4acc..e7a32627c 100644 --- a/client/src/app/videos/+video-edit/video-add-routing.module.ts +++ b/client/src/app/videos/+video-edit/video-add-routing.module.ts | |||
@@ -3,13 +3,14 @@ import { RouterModule, Routes } from '@angular/router' | |||
3 | 3 | ||
4 | import { MetaGuard } from '@ngx-meta/core' | 4 | import { MetaGuard } from '@ngx-meta/core' |
5 | 5 | ||
6 | import { LoginGuard } from '../../core' | ||
6 | import { VideoAddComponent } from './video-add.component' | 7 | import { VideoAddComponent } from './video-add.component' |
7 | 8 | ||
8 | const videoAddRoutes: Routes = [ | 9 | const videoAddRoutes: Routes = [ |
9 | { | 10 | { |
10 | path: '', | 11 | path: '', |
11 | component: VideoAddComponent, | 12 | component: VideoAddComponent, |
12 | canActivateChild: [ MetaGuard ] | 13 | canActivate: [ MetaGuard, LoginGuard ] |
13 | } | 14 | } |
14 | ] | 15 | ] |
15 | 16 | ||
diff --git a/client/src/app/videos/+video-edit/video-update-routing.module.ts b/client/src/app/videos/+video-edit/video-update-routing.module.ts index 1d06a7ac3..22c27a072 100644 --- a/client/src/app/videos/+video-edit/video-update-routing.module.ts +++ b/client/src/app/videos/+video-edit/video-update-routing.module.ts | |||
@@ -3,13 +3,14 @@ import { RouterModule, Routes } from '@angular/router' | |||
3 | 3 | ||
4 | import { MetaGuard } from '@ngx-meta/core' | 4 | import { MetaGuard } from '@ngx-meta/core' |
5 | 5 | ||
6 | import { LoginGuard } from '../../core' | ||
6 | import { VideoUpdateComponent } from './video-update.component' | 7 | import { VideoUpdateComponent } from './video-update.component' |
7 | 8 | ||
8 | const videoUpdateRoutes: Routes = [ | 9 | const videoUpdateRoutes: Routes = [ |
9 | { | 10 | { |
10 | path: '', | 11 | path: '', |
11 | component: VideoUpdateComponent, | 12 | component: VideoUpdateComponent, |
12 | canActivateChild: [ MetaGuard ] | 13 | canActivate: [ MetaGuard, LoginGuard ] |
13 | } | 14 | } |
14 | ] | 15 | ] |
15 | 16 | ||