diff options
Diffstat (limited to 'client/src/app/+admin/admin.component.ts')
-rw-r--r-- | client/src/app/+admin/admin.component.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/client/src/app/+admin/admin.component.ts b/client/src/app/+admin/admin.component.ts index 27d5e0a10..b8a957d1c 100644 --- a/client/src/app/+admin/admin.component.ts +++ b/client/src/app/+admin/admin.component.ts | |||
@@ -44,6 +44,14 @@ export class AdminComponent implements OnInit { | |||
44 | }) | 44 | }) |
45 | } | 45 | } |
46 | 46 | ||
47 | if (this.hasVideosRight()) { | ||
48 | overviewItems.children.push({ | ||
49 | label: $localize`Videos`, | ||
50 | routerLink: '/admin/videos', | ||
51 | iconName: 'videos' | ||
52 | }) | ||
53 | } | ||
54 | |||
47 | if (overviewItems.children.length !== 0) { | 55 | if (overviewItems.children.length !== 0) { |
48 | this.menuEntries.push(overviewItems) | 56 | this.menuEntries.push(overviewItems) |
49 | } | 57 | } |
@@ -217,4 +225,8 @@ export class AdminComponent implements OnInit { | |||
217 | private hasVideoCommentsRight () { | 225 | private hasVideoCommentsRight () { |
218 | return this.auth.getUser().hasRight(UserRight.SEE_ALL_COMMENTS) | 226 | return this.auth.getUser().hasRight(UserRight.SEE_ALL_COMMENTS) |
219 | } | 227 | } |
228 | |||
229 | private hasVideosRight () { | ||
230 | return this.auth.getUser().hasRight(UserRight.SEE_ALL_VIDEOS) | ||
231 | } | ||
220 | } | 232 | } |