From fde37dc99c0ca43021ac3d1b3537f095ee6114b7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 5 May 2020 17:22:11 +0200 Subject: Add ability for video owners to delete comments --- client/src/app/videos/+video-watch/comment/video-comment.component.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'client/src') diff --git a/client/src/app/videos/+video-watch/comment/video-comment.component.ts b/client/src/app/videos/+video-watch/comment/video-comment.component.ts index 1313b6585..868addd58 100644 --- a/client/src/app/videos/+video-watch/comment/video-comment.component.ts +++ b/client/src/app/videos/+video-watch/comment/video-comment.component.ts @@ -98,6 +98,7 @@ export class VideoCommentComponent implements OnInit, OnChanges { return this.comment.account && this.isUserLoggedIn() && ( this.user.account.id === this.comment.account.id || + this.user.account.id === this.video.account.id || this.user.hasRight(UserRight.REMOVE_ANY_VIDEO_COMMENT) ) } -- cgit v1.2.3