diff options
Diffstat (limited to 'shared/models/users')
-rw-r--r-- | shared/models/users/user-right.enum.ts | 4 | ||||
-rw-r--r-- | shared/models/users/user-role.ts | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/shared/models/users/user-right.enum.ts b/shared/models/users/user-right.enum.ts index 090256bca..eaa064bd9 100644 --- a/shared/models/users/user-right.enum.ts +++ b/shared/models/users/user-right.enum.ts | |||
@@ -20,8 +20,12 @@ export enum UserRight { | |||
20 | 20 | ||
21 | REMOVE_ANY_VIDEO, | 21 | REMOVE_ANY_VIDEO, |
22 | REMOVE_ANY_VIDEO_CHANNEL, | 22 | REMOVE_ANY_VIDEO_CHANNEL, |
23 | REMOVE_ANY_VIDEO_PLAYLIST, | ||
23 | REMOVE_ANY_VIDEO_COMMENT, | 24 | REMOVE_ANY_VIDEO_COMMENT, |
25 | |||
24 | UPDATE_ANY_VIDEO, | 26 | UPDATE_ANY_VIDEO, |
27 | UPDATE_ANY_VIDEO_PLAYLIST, | ||
28 | |||
25 | SEE_ALL_VIDEOS, | 29 | SEE_ALL_VIDEOS, |
26 | CHANGE_VIDEO_OWNERSHIP | 30 | CHANGE_VIDEO_OWNERSHIP |
27 | } | 31 | } |
diff --git a/shared/models/users/user-role.ts b/shared/models/users/user-role.ts index 59c2ba106..0b6554e51 100644 --- a/shared/models/users/user-role.ts +++ b/shared/models/users/user-role.ts | |||
@@ -25,6 +25,7 @@ const userRoleRights: { [ id: number ]: UserRight[] } = { | |||
25 | UserRight.MANAGE_VIDEO_ABUSES, | 25 | UserRight.MANAGE_VIDEO_ABUSES, |
26 | UserRight.REMOVE_ANY_VIDEO, | 26 | UserRight.REMOVE_ANY_VIDEO, |
27 | UserRight.REMOVE_ANY_VIDEO_CHANNEL, | 27 | UserRight.REMOVE_ANY_VIDEO_CHANNEL, |
28 | UserRight.REMOVE_ANY_VIDEO_PLAYLIST, | ||
28 | UserRight.REMOVE_ANY_VIDEO_COMMENT, | 29 | UserRight.REMOVE_ANY_VIDEO_COMMENT, |
29 | UserRight.UPDATE_ANY_VIDEO, | 30 | UserRight.UPDATE_ANY_VIDEO, |
30 | UserRight.SEE_ALL_VIDEOS, | 31 | UserRight.SEE_ALL_VIDEOS, |