aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-08-14 09:08:47 +0200
committerChocobozzz <me@florianbigard.com>2018-08-14 09:27:18 +0200
commit191764f30b0a812bf3a9dbdc7daf1d5afe25e12a (patch)
treea5592f8d89949cde832f025e393a3821ad2aca37 /shared
parent26b7305a232e547709f433a6edf700bf495935d8 (diff)
downloadPeerTube-191764f30b0a812bf3a9dbdc7daf1d5afe25e12a.tar.gz
PeerTube-191764f30b0a812bf3a9dbdc7daf1d5afe25e12a.tar.zst
PeerTube-191764f30b0a812bf3a9dbdc7daf1d5afe25e12a.zip
Improve blacklist management
Diffstat (limited to 'shared')
-rw-r--r--shared/models/users/user-right.enum.ts5
-rw-r--r--shared/models/videos/video-abuse.model.ts1
-rw-r--r--shared/models/videos/video-blacklist.model.ts2
3 files changed, 5 insertions, 3 deletions
diff --git a/shared/models/users/user-right.enum.ts b/shared/models/users/user-right.enum.ts
index ff6ec61f4..142a0474b 100644
--- a/shared/models/users/user-right.enum.ts
+++ b/shared/models/users/user-right.enum.ts
@@ -1,11 +1,14 @@
1export enum UserRight { 1export enum UserRight {
2 ALL, 2 ALL,
3
3 MANAGE_USERS, 4 MANAGE_USERS,
4 MANAGE_SERVER_FOLLOW, 5 MANAGE_SERVER_FOLLOW,
5 MANAGE_VIDEO_ABUSES, 6 MANAGE_VIDEO_ABUSES,
6 MANAGE_VIDEO_BLACKLIST,
7 MANAGE_JOBS, 7 MANAGE_JOBS,
8 MANAGE_CONFIGURATION, 8 MANAGE_CONFIGURATION,
9
10 MANAGE_VIDEO_BLACKLIST,
11
9 REMOVE_ANY_VIDEO, 12 REMOVE_ANY_VIDEO,
10 REMOVE_ANY_VIDEO_CHANNEL, 13 REMOVE_ANY_VIDEO_CHANNEL,
11 REMOVE_ANY_VIDEO_COMMENT, 14 REMOVE_ANY_VIDEO_COMMENT,
diff --git a/shared/models/videos/video-abuse.model.ts b/shared/models/videos/video-abuse.model.ts
index 1fecce037..b2319aa00 100644
--- a/shared/models/videos/video-abuse.model.ts
+++ b/shared/models/videos/video-abuse.model.ts
@@ -14,7 +14,6 @@ export interface VideoAbuse {
14 id: number 14 id: number
15 name: string 15 name: string
16 uuid: string 16 uuid: string
17 url: string
18 } 17 }
19 18
20 createdAt: Date 19 createdAt: Date
diff --git a/shared/models/videos/video-blacklist.model.ts b/shared/models/videos/video-blacklist.model.ts
index a060da357..ef4e5e3a2 100644
--- a/shared/models/videos/video-blacklist.model.ts
+++ b/shared/models/videos/video-blacklist.model.ts
@@ -1,4 +1,4 @@
1export interface BlacklistedVideo { 1export interface VideoBlacklist {
2 id: number 2 id: number
3 createdAt: Date 3 createdAt: Date
4 updatedAt: Date 4 updatedAt: Date