diff options
Diffstat (limited to 'client/src/app/core')
-rw-r--r-- | client/src/app/core/menu/menu-admin.component.html | 2 | ||||
-rw-r--r-- | client/src/app/core/menu/menu-admin.component.ts | 4 | ||||
-rw-r--r-- | client/src/app/core/menu/menu.component.ts | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/client/src/app/core/menu/menu-admin.component.html b/client/src/app/core/menu/menu-admin.component.html index 99ee287c5..eb2d0d69c 100644 --- a/client/src/app/core/menu/menu-admin.component.html +++ b/client/src/app/core/menu/menu-admin.component.html | |||
@@ -5,7 +5,7 @@ | |||
5 | List users | 5 | List users |
6 | </a> | 6 | </a> |
7 | 7 | ||
8 | <a *ngIf="hasApplicationFollowRight()" routerLink="/admin/follows" routerLinkActive="active"> | 8 | <a *ngIf="hasServerFollowRight()" routerLink="/admin/follows" routerLinkActive="active"> |
9 | <span class="hidden-xs glyphicon glyphicon-cloud"></span> | 9 | <span class="hidden-xs glyphicon glyphicon-cloud"></span> |
10 | Manage follows | 10 | Manage follows |
11 | </a> | 11 | </a> |
diff --git a/client/src/app/core/menu/menu-admin.component.ts b/client/src/app/core/menu/menu-admin.component.ts index 88a654d1f..466da1aee 100644 --- a/client/src/app/core/menu/menu-admin.component.ts +++ b/client/src/app/core/menu/menu-admin.component.ts | |||
@@ -15,8 +15,8 @@ export class MenuAdminComponent { | |||
15 | return this.auth.getUser().hasRight(UserRight.MANAGE_USERS) | 15 | return this.auth.getUser().hasRight(UserRight.MANAGE_USERS) |
16 | } | 16 | } |
17 | 17 | ||
18 | hasApplicationFollowRight () { | 18 | hasServerFollowRight () { |
19 | return this.auth.getUser().hasRight(UserRight.MANAGE_APPLICATION_FOLLOW) | 19 | return this.auth.getUser().hasRight(UserRight.MANAGE_SERVER_FOLLOW) |
20 | } | 20 | } |
21 | 21 | ||
22 | hasVideoAbusesRight () { | 22 | hasVideoAbusesRight () { |
diff --git a/client/src/app/core/menu/menu.component.ts b/client/src/app/core/menu/menu.component.ts index 872d29819..d2bd71534 100644 --- a/client/src/app/core/menu/menu.component.ts +++ b/client/src/app/core/menu/menu.component.ts | |||
@@ -16,7 +16,7 @@ export class MenuComponent implements OnInit { | |||
16 | 16 | ||
17 | private routesPerRight = { | 17 | private routesPerRight = { |
18 | [UserRight.MANAGE_USERS]: '/admin/users', | 18 | [UserRight.MANAGE_USERS]: '/admin/users', |
19 | [UserRight.MANAGE_APPLICATION_FOLLOW]: '/admin/friends', | 19 | [UserRight.MANAGE_SERVER_FOLLOW]: '/admin/friends', |
20 | [UserRight.MANAGE_VIDEO_ABUSES]: '/admin/video-abuses', | 20 | [UserRight.MANAGE_VIDEO_ABUSES]: '/admin/video-abuses', |
21 | [UserRight.MANAGE_VIDEO_BLACKLIST]: '/admin/video-blacklist' | 21 | [UserRight.MANAGE_VIDEO_BLACKLIST]: '/admin/video-blacklist' |
22 | } | 22 | } |
@@ -58,7 +58,7 @@ export class MenuComponent implements OnInit { | |||
58 | 58 | ||
59 | const adminRights = [ | 59 | const adminRights = [ |
60 | UserRight.MANAGE_USERS, | 60 | UserRight.MANAGE_USERS, |
61 | UserRight.MANAGE_APPLICATION_FOLLOW, | 61 | UserRight.MANAGE_SERVER_FOLLOW, |
62 | UserRight.MANAGE_VIDEO_ABUSES, | 62 | UserRight.MANAGE_VIDEO_ABUSES, |
63 | UserRight.MANAGE_VIDEO_BLACKLIST | 63 | UserRight.MANAGE_VIDEO_BLACKLIST |
64 | ] | 64 | ] |