diff options
author | Chocobozzz <me@florianbigard.com> | 2018-10-15 13:03:04 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-10-16 16:41:36 +0200 |
commit | b44164bb567fe7c9f65f1ac2908d44990a8ccc8e (patch) | |
tree | 37baa0346293e1ed30f8a43270dfd54a4791c6f0 /shared/models | |
parent | af5767ffae41b2d5604e41ba9a7225c623dd6735 (diff) | |
download | PeerTube-b44164bb567fe7c9f65f1ac2908d44990a8ccc8e.tar.gz PeerTube-b44164bb567fe7c9f65f1ac2908d44990a8ccc8e.tar.zst PeerTube-b44164bb567fe7c9f65f1ac2908d44990a8ccc8e.zip |
Add ability to mute a user/instance by server in server api
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 | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/shared/models/users/user-right.enum.ts b/shared/models/users/user-right.enum.ts index ed2c536ce..51c59d20a 100644 --- a/shared/models/users/user-right.enum.ts +++ b/shared/models/users/user-right.enum.ts | |||
@@ -8,6 +8,9 @@ export enum UserRight { | |||
8 | MANAGE_JOBS, | 8 | MANAGE_JOBS, |
9 | MANAGE_CONFIGURATION, | 9 | MANAGE_CONFIGURATION, |
10 | 10 | ||
11 | MANAGE_ACCOUNTS_BLOCKLIST, | ||
12 | MANAGE_SERVERS_BLOCKLIST, | ||
13 | |||
11 | MANAGE_VIDEO_BLACKLIST, | 14 | MANAGE_VIDEO_BLACKLIST, |
12 | 15 | ||
13 | REMOVE_ANY_VIDEO, | 16 | REMOVE_ANY_VIDEO, |
diff --git a/shared/models/users/user-role.ts b/shared/models/users/user-role.ts index d7020c0f2..adef8fd95 100644 --- a/shared/models/users/user-role.ts +++ b/shared/models/users/user-role.ts | |||
@@ -27,7 +27,9 @@ const userRoleRights: { [ id: number ]: UserRight[] } = { | |||
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 | UserRight.UPDATE_ANY_VIDEO, |
30 | UserRight.SEE_ALL_VIDEOS | 30 | UserRight.SEE_ALL_VIDEOS, |
31 | UserRight.MANAGE_ACCOUNTS_BLOCKLIST, | ||
32 | UserRight.MANAGE_SERVERS_BLOCKLIST | ||
31 | ], | 33 | ], |
32 | 34 | ||
33 | [UserRole.USER]: [] | 35 | [UserRole.USER]: [] |