]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/users/user-role.ts
Send an email on video abuse report
[github/Chocobozzz/PeerTube.git] / shared / models / users / user-role.ts
index 0e75444f8f35f5667ae9f361aeaf3ffe6fef5ab7..271c9a46f23d77b6dbf799501172cd895cd41202 100644 (file)
@@ -7,7 +7,8 @@ export enum UserRole {
   USER = 2
 }
 
-export const USER_ROLE_LABELS = {
+// TODO: use UserRole for key once https://github.com/Microsoft/TypeScript/issues/13042 is fixed
+export const USER_ROLE_LABELS: { [ id: number ]: string } = {
   [UserRole.USER]: 'User',
   [UserRole.MODERATOR]: 'Moderator',
   [UserRole.ADMINISTRATOR]: 'Administrator'