aboutsummaryrefslogtreecommitdiffhomepage
path: root/packages/models/src/users/user-right.enum.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/models/src/users/user-right.enum.ts')
-rw-r--r--packages/models/src/users/user-right.enum.ts53
1 files changed, 53 insertions, 0 deletions
diff --git a/packages/models/src/users/user-right.enum.ts b/packages/models/src/users/user-right.enum.ts
new file mode 100644
index 000000000..534b9feb0
--- /dev/null
+++ b/packages/models/src/users/user-right.enum.ts
@@ -0,0 +1,53 @@
1export const UserRight = {
2 ALL: 0,
3
4 MANAGE_USERS: 1,
5
6 MANAGE_SERVER_FOLLOW: 2,
7
8 MANAGE_LOGS: 3,
9
10 MANAGE_DEBUG: 4,
11
12 MANAGE_SERVER_REDUNDANCY: 5,
13
14 MANAGE_ABUSES: 6,
15
16 MANAGE_JOBS: 7,
17
18 MANAGE_CONFIGURATION: 8,
19 MANAGE_INSTANCE_CUSTOM_PAGE: 9,
20
21 MANAGE_ACCOUNTS_BLOCKLIST: 10,
22 MANAGE_SERVERS_BLOCKLIST: 11,
23
24 MANAGE_VIDEO_BLACKLIST: 12,
25 MANAGE_ANY_VIDEO_CHANNEL: 13,
26
27 REMOVE_ANY_VIDEO: 14,
28 REMOVE_ANY_VIDEO_PLAYLIST: 15,
29 REMOVE_ANY_VIDEO_COMMENT: 16,
30
31 UPDATE_ANY_VIDEO: 17,
32 UPDATE_ANY_VIDEO_PLAYLIST: 18,
33
34 GET_ANY_LIVE: 19,
35 SEE_ALL_VIDEOS: 20,
36 SEE_ALL_COMMENTS: 21,
37 CHANGE_VIDEO_OWNERSHIP: 22,
38
39 MANAGE_PLUGINS: 23,
40
41 MANAGE_VIDEOS_REDUNDANCIES: 24,
42
43 MANAGE_VIDEO_FILES: 25,
44 RUN_VIDEO_TRANSCODING: 26,
45
46 MANAGE_VIDEO_IMPORTS: 27,
47
48 MANAGE_REGISTRATIONS: 28,
49
50 MANAGE_RUNNERS: 29
51} as const
52
53export type UserRightType = typeof UserRight[keyof typeof UserRight]