X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fmenu%2Fmenu.component.ts;h=371beb4a579620775cf8a152fc162349ceaa2d8a;hb=ab5f9ed86e08cb7de3a1be955ca991a4517bdc57;hp=9b3608b156594311553833561ec49dfe452632a9;hpb=4a216666e7f353e638c6927a9ff0c8fce4e94014;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/menu/menu.component.ts b/client/src/app/menu/menu.component.ts index 9b3608b15..371beb4a5 100644 --- a/client/src/app/menu/menu.component.ts +++ b/client/src/app/menu/menu.component.ts @@ -18,7 +18,7 @@ export class MenuComponent implements OnInit { userHasAdminAccess = false helpVisible = false - private routesPerRight = { + private routesPerRight: { [ role in UserRight ]?: string } = { [UserRight.MANAGE_USERS]: '/admin/users', [UserRight.MANAGE_SERVER_FOLLOW]: '/admin/friends', [UserRight.MANAGE_VIDEO_ABUSES]: '/admin/moderation/video-abuses', @@ -32,7 +32,7 @@ export class MenuComponent implements OnInit { private serverService: ServerService, private redirectService: RedirectService, private themeService: ThemeService, - private hotkeysService: HotkeysService + private hotkeysService: HotkeysService ) {} ngOnInit () {