diff options
author | Chocobozzz <me@florianbigard.com> | 2020-05-05 17:22:11 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-05-05 17:22:11 +0200 |
commit | fde37dc99c0ca43021ac3d1b3537f095ee6114b7 (patch) | |
tree | 1b7da7037fd428327831045ff82b47864be182f9 /client/src | |
parent | 298b3fd31529c047e87d34d397af3b08833bd8d0 (diff) | |
download | PeerTube-fde37dc99c0ca43021ac3d1b3537f095ee6114b7.tar.gz PeerTube-fde37dc99c0ca43021ac3d1b3537f095ee6114b7.tar.zst PeerTube-fde37dc99c0ca43021ac3d1b3537f095ee6114b7.zip |
Add ability for video owners to delete comments
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/videos/+video-watch/comment/video-comment.component.ts | 1 |
1 files changed, 1 insertions, 0 deletions
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 { | |||
98 | return this.comment.account && this.isUserLoggedIn() && | 98 | return this.comment.account && this.isUserLoggedIn() && |
99 | ( | 99 | ( |
100 | this.user.account.id === this.comment.account.id || | 100 | this.user.account.id === this.comment.account.id || |
101 | this.user.account.id === this.video.account.id || | ||
101 | this.user.hasRight(UserRight.REMOVE_ANY_VIDEO_COMMENT) | 102 | this.user.hasRight(UserRight.REMOVE_ANY_VIDEO_COMMENT) |
102 | ) | 103 | ) |
103 | } | 104 | } |