diff options
author | Chocobozzz <me@florianbigard.com> | 2021-12-28 15:30:36 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-12-28 15:34:55 +0100 |
commit | fba87e27c1cb6c679fff0d2c50be230f7e0c3e56 (patch) | |
tree | d7fe489c57056a8c1cba3d199a90053ff547f4ad /shared/models/users | |
parent | 81d02aac56d76227c094d40b17b29875d88417f4 (diff) | |
download | PeerTube-fba87e27c1cb6c679fff0d2c50be230f7e0c3e56.tar.gz PeerTube-fba87e27c1cb6c679fff0d2c50be230f7e0c3e56.tar.zst PeerTube-fba87e27c1cb6c679fff0d2c50be230f7e0c3e56.zip |
Resolve enums at compile time
Diffstat (limited to 'shared/models/users')
-rw-r--r-- | shared/models/users/user-role.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/models/users/user-role.ts b/shared/models/users/user-role.ts index 94413abca..687a2aa0d 100644 --- a/shared/models/users/user-role.ts +++ b/shared/models/users/user-role.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | // Keep the order | 1 | // Keep the order |
2 | export enum UserRole { | 2 | export const enum UserRole { |
3 | ADMINISTRATOR = 0, | 3 | ADMINISTRATOR = 0, |
4 | MODERATOR = 1, | 4 | MODERATOR = 1, |
5 | USER = 2 | 5 | USER = 2 |