diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-10 10:18:25 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-10 10:24:02 +0200 |
commit | f47bf2e142b0b22460558e23720f5aed8deb982c (patch) | |
tree | 63a084494585a67e4326bf18c611e108de59aaee /client/src/app/videos/+video-edit/video-add-routing.module.ts | |
parent | 35bf0c83c80f59ca79f4b84fac8700f17adeb22d (diff) | |
download | PeerTube-f47bf2e142b0b22460558e23720f5aed8deb982c.tar.gz PeerTube-f47bf2e142b0b22460558e23720f5aed8deb982c.tar.zst PeerTube-f47bf2e142b0b22460558e23720f5aed8deb982c.zip |
Client: check user is logged in for some pages
Diffstat (limited to 'client/src/app/videos/+video-edit/video-add-routing.module.ts')
-rw-r--r-- | client/src/app/videos/+video-edit/video-add-routing.module.ts | 3 |
1 files changed, 2 insertions, 1 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 | ||