]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/users/user-right.enum.ts
Fix getting live by anonymous user
[github/Chocobozzz/PeerTube.git] / shared / models / users / user-right.enum.ts
index 64ad3e9b9aecadc4ae609980e762fa97b2d9205a..9c6828aa5f90b822190105ae99147aa9386b4fd6 100644 (file)
@@ -1,17 +1,47 @@
-export enum UserRight {
-  ALL,
-
-  MANAGE_USERS,
-  MANAGE_SERVER_FOLLOW,
-  MANAGE_VIDEO_ABUSES,
-  MANAGE_JOBS,
-  MANAGE_CONFIGURATION,
-
-  MANAGE_VIDEO_BLACKLIST,
-
-  REMOVE_ANY_VIDEO,
-  REMOVE_ANY_VIDEO_CHANNEL,
-  REMOVE_ANY_VIDEO_COMMENT,
-  UPDATE_ANY_VIDEO,
-  CHANGE_VIDEO_OWNERSHIP
+export const enum UserRight {
+  ALL = 0,
+
+  MANAGE_USERS = 1,
+
+  MANAGE_SERVER_FOLLOW = 2,
+
+  MANAGE_LOGS = 3,
+
+  MANAGE_DEBUG = 4,
+
+  MANAGE_SERVER_REDUNDANCY = 5,
+
+  MANAGE_ABUSES = 6,
+
+  MANAGE_JOBS = 7,
+
+  MANAGE_CONFIGURATION = 8,
+  MANAGE_INSTANCE_CUSTOM_PAGE = 9,
+
+  MANAGE_ACCOUNTS_BLOCKLIST = 10,
+  MANAGE_SERVERS_BLOCKLIST = 11,
+
+  MANAGE_VIDEO_BLACKLIST = 12,
+  MANAGE_ANY_VIDEO_CHANNEL = 13,
+
+  REMOVE_ANY_VIDEO = 14,
+  REMOVE_ANY_VIDEO_PLAYLIST = 15,
+  REMOVE_ANY_VIDEO_COMMENT = 16,
+
+  UPDATE_ANY_VIDEO = 17,
+  UPDATE_ANY_VIDEO_PLAYLIST = 18,
+
+  GET_ANY_LIVE = 19,
+  SEE_ALL_VIDEOS = 20,
+  SEE_ALL_COMMENTS = 21,
+  CHANGE_VIDEO_OWNERSHIP = 22,
+
+  MANAGE_PLUGINS = 23,
+
+  MANAGE_VIDEOS_REDUNDANCIES = 24,
+
+  MANAGE_VIDEO_FILES = 25,
+  RUN_VIDEO_TRANSCODING = 26,
+
+  MANAGE_VIDEO_IMPORTS = 27
 }