diff options
Diffstat (limited to 'client/src/app/menu/menu.component.ts')
-rw-r--r-- | client/src/app/menu/menu.component.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/menu/menu.component.ts b/client/src/app/menu/menu.component.ts index 410abe6fa..6d309f15a 100644 --- a/client/src/app/menu/menu.component.ts +++ b/client/src/app/menu/menu.component.ts | |||
@@ -22,7 +22,7 @@ import { LanguageChooserComponent } from '@app/menu/language-chooser.component' | |||
22 | import { QuickSettingsModalComponent } from '@app/modal/quick-settings-modal.component' | 22 | import { QuickSettingsModalComponent } from '@app/modal/quick-settings-modal.component' |
23 | import { PeertubeModalService } from '@app/shared/shared-main/peertube-modal/peertube-modal.service' | 23 | import { PeertubeModalService } from '@app/shared/shared-main/peertube-modal/peertube-modal.service' |
24 | import { NgbDropdown } from '@ng-bootstrap/ng-bootstrap' | 24 | import { NgbDropdown } from '@ng-bootstrap/ng-bootstrap' |
25 | import { HTMLServerConfig, ServerConfig, UserRight, VideoConstant } from '@shared/models' | 25 | import { HTMLServerConfig, ServerConfig, UserRight, UserRightType, VideoConstant } from '@peertube/peertube-models' |
26 | 26 | ||
27 | const debugLogger = debug('peertube:menu:MenuComponent') | 27 | const debugLogger = debug('peertube:menu:MenuComponent') |
28 | 28 | ||
@@ -54,7 +54,7 @@ export class MenuComponent implements OnInit, OnDestroy { | |||
54 | private htmlServerConfig: HTMLServerConfig | 54 | private htmlServerConfig: HTMLServerConfig |
55 | private serverConfig: ServerConfig | 55 | private serverConfig: ServerConfig |
56 | 56 | ||
57 | private routesPerRight: { [role in UserRight]?: string } = { | 57 | private routesPerRight: { [role in UserRightType]?: string } = { |
58 | [UserRight.MANAGE_USERS]: '/admin/users', | 58 | [UserRight.MANAGE_USERS]: '/admin/users', |
59 | [UserRight.MANAGE_SERVER_FOLLOW]: '/admin/friends', | 59 | [UserRight.MANAGE_SERVER_FOLLOW]: '/admin/friends', |
60 | [UserRight.MANAGE_ABUSES]: '/admin/moderation/abuses', | 60 | [UserRight.MANAGE_ABUSES]: '/admin/moderation/abuses', |