X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bvideos%2Fvideos-routing.module.ts;h=f658182e01e44476046a847c4573ff30d53bad3c;hb=8e0a2f2a05df23c30abb21cfbd540fc289c33b91;hp=cf5f0b2e80d0f538d5cfe8258f97fe28a5a062b2;hpb=f29f487ef8892453a481628a6a3cff802dc89213;p=github%2FChocobozzz%2FPeerTube.git 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: {