From 4cb6d4578893db310297d7e118ce2fb7ecb952a3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 4 Jan 2018 11:19:16 +0100 Subject: Add ability to delete comments --- shared/models/actors/account.model.ts | 1 + shared/models/users/user-right.enum.ts | 3 ++- shared/models/users/user-role.ts | 3 ++- shared/models/videos/video-channel.model.ts | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) (limited to 'shared') diff --git a/shared/models/actors/account.model.ts b/shared/models/actors/account.model.ts index ef6fca539..e4dbc81e5 100644 --- a/shared/models/actors/account.model.ts +++ b/shared/models/actors/account.model.ts @@ -3,6 +3,7 @@ import { Avatar } from '../avatars/avatar.model' export interface Account { id: number uuid: string + url: string name: string displayName: string host: string diff --git a/shared/models/users/user-right.enum.ts b/shared/models/users/user-right.enum.ts index 238e38a36..2e7fa1bcf 100644 --- a/shared/models/users/user-right.enum.ts +++ b/shared/models/users/user-right.enum.ts @@ -6,5 +6,6 @@ export enum UserRight { MANAGE_VIDEO_BLACKLIST, MANAGE_JOBS, REMOVE_ANY_VIDEO, - REMOVE_ANY_VIDEO_CHANNEL + REMOVE_ANY_VIDEO_CHANNEL, + REMOVE_ANY_VIDEO_COMMENT } diff --git a/shared/models/users/user-role.ts b/shared/models/users/user-role.ts index cc32c768d..0e75444f8 100644 --- a/shared/models/users/user-role.ts +++ b/shared/models/users/user-role.ts @@ -23,7 +23,8 @@ const userRoleRights: { [ id: number ]: UserRight[] } = { UserRight.MANAGE_VIDEO_BLACKLIST, UserRight.MANAGE_VIDEO_ABUSES, UserRight.REMOVE_ANY_VIDEO, - UserRight.REMOVE_ANY_VIDEO_CHANNEL + UserRight.REMOVE_ANY_VIDEO_CHANNEL, + UserRight.REMOVE_ANY_VIDEO_COMMENT ], [UserRole.USER]: [] diff --git a/shared/models/videos/video-channel.model.ts b/shared/models/videos/video-channel.model.ts index ee56c54b6..d1a952826 100644 --- a/shared/models/videos/video-channel.model.ts +++ b/shared/models/videos/video-channel.model.ts @@ -3,6 +3,7 @@ import { Video } from './video.model' export interface VideoChannel { id: number name: string + url: string description: string isLocal: boolean createdAt: Date | string -- cgit v1.2.3