]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/videos/+video-edit/video-add-routing.module.ts
Begin admin design
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-edit / video-add-routing.module.ts
index 9e8fa4acc1eafc0c3da1974888ef404f50ddaf9c..e7a32627c50dd350ea55e223cbc4b6a65c9eab56 100644 (file)
@@ -3,13 +3,14 @@ import { RouterModule, Routes } from '@angular/router'
 
 import { MetaGuard } from '@ngx-meta/core'
 
+import { LoginGuard } from '../../core'
 import { VideoAddComponent } from './video-add.component'
 
 const videoAddRoutes: Routes = [
   {
     path: '',
     component: VideoAddComponent,
-    canActivateChild: [ MetaGuard ]
+    canActivate: [ MetaGuard, LoginGuard ]
   }
 ]