From b2dd58a8084fed3d3169be80ed34ada888189132 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 3 Dec 2020 14:50:21 +0100 Subject: Fix login guard to videos from subscriptions --- client/src/app/+videos/videos-routing.module.ts | 2 ++ 1 file changed, 2 insertions(+) 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 @@ import { NgModule } from '@angular/core' import { RouterModule, Routes } from '@angular/router' +import { LoginGuard } from '@app/core' import { MetaGuard } from '@ngx-meta/core' import { VideoOverviewComponent } from './video-list/overview/video-overview.component' import { VideoLocalComponent } from './video-list/video-local.component' @@ -65,6 +66,7 @@ const videosRoutes: Routes = [ }, { path: 'subscriptions', + canActivate: [ LoginGuard ], component: VideoUserSubscriptionsComponent, data: { meta: { -- cgit v1.2.3