From 191764f30b0a812bf3a9dbdc7daf1d5afe25e12a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 14 Aug 2018 09:08:47 +0200 Subject: Improve blacklist management --- shared/models/users/user-right.enum.ts | 5 ++++- shared/models/videos/video-abuse.model.ts | 1 - shared/models/videos/video-blacklist.model.ts | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'shared') 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 @@ export enum UserRight { ALL, + MANAGE_USERS, MANAGE_SERVER_FOLLOW, MANAGE_VIDEO_ABUSES, - MANAGE_VIDEO_BLACKLIST, MANAGE_JOBS, MANAGE_CONFIGURATION, + + MANAGE_VIDEO_BLACKLIST, + REMOVE_ANY_VIDEO, REMOVE_ANY_VIDEO_CHANNEL, 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 { id: number name: string uuid: string - url: string } 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 @@ -export interface BlacklistedVideo { +export interface VideoBlacklist { id: number createdAt: Date updatedAt: Date -- cgit v1.2.3