diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-09-10 09:24:50 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-09-10 09:24:50 +0200 |
commit | 7ca86c864e102b65e4ff3224a06554a66148fef8 (patch) | |
tree | 8554b9069257d94cf567981140a0881b566d8b3d /client/src/app/+admin/admin.module.ts | |
parent | 6599f096d5a26f2cc9624359d92cc501ec189586 (diff) | |
download | PeerTube-7ca86c864e102b65e4ff3224a06554a66148fef8.tar.gz PeerTube-7ca86c864e102b65e4ff3224a06554a66148fef8.tar.zst PeerTube-7ca86c864e102b65e4ff3224a06554a66148fef8.zip |
Client: add guard to admin routes
Diffstat (limited to 'client/src/app/+admin/admin.module.ts')
-rw-r--r-- | client/src/app/+admin/admin.module.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/+admin/admin.module.ts b/client/src/app/+admin/admin.module.ts index 853085a83..786dbc15c 100644 --- a/client/src/app/+admin/admin.module.ts +++ b/client/src/app/+admin/admin.module.ts | |||
@@ -7,6 +7,7 @@ import { RequestSchedulersComponent, RequestSchedulersStatsComponent, RequestSch | |||
7 | import { UsersComponent, UserAddComponent, UserUpdateComponent, UserListComponent, UserService } from './users' | 7 | import { UsersComponent, UserAddComponent, UserUpdateComponent, UserListComponent, UserService } from './users' |
8 | import { VideoAbusesComponent, VideoAbuseListComponent } from './video-abuses' | 8 | import { VideoAbusesComponent, VideoAbuseListComponent } from './video-abuses' |
9 | import { SharedModule } from '../shared' | 9 | import { SharedModule } from '../shared' |
10 | import { AdminGuard } from './admin-guard.service' | ||
10 | 11 | ||
11 | @NgModule({ | 12 | @NgModule({ |
12 | imports: [ | 13 | imports: [ |
@@ -40,7 +41,8 @@ import { SharedModule } from '../shared' | |||
40 | providers: [ | 41 | providers: [ |
41 | FriendService, | 42 | FriendService, |
42 | RequestSchedulersService, | 43 | RequestSchedulersService, |
43 | UserService | 44 | UserService, |
45 | AdminGuard | ||
44 | ] | 46 | ] |
45 | }) | 47 | }) |
46 | export class AdminModule { } | 48 | export class AdminModule { } |