diff options
author | Chocobozzz <me@florianbigard.com> | 2020-12-03 14:50:21 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-12-03 15:21:16 +0100 |
commit | b2dd58a8084fed3d3169be80ed34ada888189132 (patch) | |
tree | e32f48cdd9bad0790cb9800d9eea464917d559ae | |
parent | bb4ba6d94c5051fdd665ebe63fffcc105778b8be (diff) | |
download | PeerTube-b2dd58a8084fed3d3169be80ed34ada888189132.tar.gz PeerTube-b2dd58a8084fed3d3169be80ed34ada888189132.tar.zst PeerTube-b2dd58a8084fed3d3169be80ed34ada888189132.zip |
Fix login guard to videos from subscriptions
-rw-r--r-- | client/src/app/+videos/videos-routing.module.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/app/+videos/videos-routing.module.ts b/client/src/app/+videos/videos-routing.module.ts index cf5f0b2e8..f658182e0 100644 --- a/client/src/app/+videos/videos-routing.module.ts +++ b/client/src/app/+videos/videos-routing.module.ts | |||
@@ -1,5 +1,6 @@ | |||
1 | import { NgModule } from '@angular/core' | 1 | import { NgModule } from '@angular/core' |
2 | import { RouterModule, Routes } from '@angular/router' | 2 | import { RouterModule, Routes } from '@angular/router' |
3 | import { LoginGuard } from '@app/core' | ||
3 | import { MetaGuard } from '@ngx-meta/core' | 4 | import { MetaGuard } from '@ngx-meta/core' |
4 | import { VideoOverviewComponent } from './video-list/overview/video-overview.component' | 5 | import { VideoOverviewComponent } from './video-list/overview/video-overview.component' |
5 | import { VideoLocalComponent } from './video-list/video-local.component' | 6 | import { VideoLocalComponent } from './video-list/video-local.component' |
@@ -65,6 +66,7 @@ const videosRoutes: Routes = [ | |||
65 | }, | 66 | }, |
66 | { | 67 | { |
67 | path: 'subscriptions', | 68 | path: 'subscriptions', |
69 | canActivate: [ LoginGuard ], | ||
68 | component: VideoUserSubscriptionsComponent, | 70 | component: VideoUserSubscriptionsComponent, |
69 | data: { | 71 | data: { |
70 | meta: { | 72 | meta: { |