diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-22 09:03:45 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-22 09:03:45 +0100 |
commit | 6221f311de0eb8f2a9e7e4a77b8cb0ecbde6dfcd (patch) | |
tree | 895e833221877e5f2c4bf291a7cd1bda05cf8865 /shared/models | |
parent | 9f4183c9b57acd382668d49e86b0001bcd55550f (diff) | |
download | PeerTube-6221f311de0eb8f2a9e7e4a77b8cb0ecbde6dfcd.tar.gz PeerTube-6221f311de0eb8f2a9e7e4a77b8cb0ecbde6dfcd.tar.zst PeerTube-6221f311de0eb8f2a9e7e4a77b8cb0ecbde6dfcd.zip |
Add ability to update another user video
Diffstat (limited to 'shared/models')
-rw-r--r-- | shared/models/users/user-right.enum.ts | 3 | ||||
-rw-r--r-- | shared/models/users/user-role.ts | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/shared/models/users/user-right.enum.ts b/shared/models/users/user-right.enum.ts index 1fa149999..ff6ec61f4 100644 --- a/shared/models/users/user-right.enum.ts +++ b/shared/models/users/user-right.enum.ts | |||
@@ -8,5 +8,6 @@ export enum UserRight { | |||
8 | MANAGE_CONFIGURATION, | 8 | MANAGE_CONFIGURATION, |
9 | REMOVE_ANY_VIDEO, | 9 | REMOVE_ANY_VIDEO, |
10 | REMOVE_ANY_VIDEO_CHANNEL, | 10 | REMOVE_ANY_VIDEO_CHANNEL, |
11 | REMOVE_ANY_VIDEO_COMMENT | 11 | REMOVE_ANY_VIDEO_COMMENT, |
12 | UPDATE_ANY_VIDEO | ||
12 | } | 13 | } |
diff --git a/shared/models/users/user-role.ts b/shared/models/users/user-role.ts index 271c9a46f..552aad999 100644 --- a/shared/models/users/user-role.ts +++ b/shared/models/users/user-role.ts | |||
@@ -25,7 +25,8 @@ 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_COMMENT | 28 | UserRight.REMOVE_ANY_VIDEO_COMMENT, |
29 | UserRight.UPDATE_ANY_VIDEO | ||
29 | ], | 30 | ], |
30 | 31 | ||
31 | [UserRole.USER]: [] | 32 | [UserRole.USER]: [] |