aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-12-03 14:50:21 +0100
committerChocobozzz <me@florianbigard.com>2020-12-03 15:21:16 +0100
commitb2dd58a8084fed3d3169be80ed34ada888189132 (patch)
treee32f48cdd9bad0790cb9800d9eea464917d559ae
parentbb4ba6d94c5051fdd665ebe63fffcc105778b8be (diff)
downloadPeerTube-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.ts2
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 @@
1import { NgModule } from '@angular/core' 1import { NgModule } from '@angular/core'
2import { RouterModule, Routes } from '@angular/router' 2import { RouterModule, Routes } from '@angular/router'
3import { LoginGuard } from '@app/core'
3import { MetaGuard } from '@ngx-meta/core' 4import { MetaGuard } from '@ngx-meta/core'
4import { VideoOverviewComponent } from './video-list/overview/video-overview.component' 5import { VideoOverviewComponent } from './video-list/overview/video-overview.component'
5import { VideoLocalComponent } from './video-list/video-local.component' 6import { 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: {