mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Add ability to delete comments
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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]: []
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user