Add ability to delete comments

This commit is contained in:
Chocobozzz
2018-01-04 11:19:16 +01:00
parent cf117aaafc
commit 4cb6d45788
29 changed files with 437 additions and 52 deletions

View File

@@ -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

View File

@@ -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
}

View File

@@ -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]: []

View File

@@ -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