aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/video-watch
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/videos/video-watch')
-rw-r--r--client/src/app/videos/video-watch/video-watch.component.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/client/src/app/videos/video-watch/video-watch.component.ts b/client/src/app/videos/video-watch/video-watch.component.ts
index 07b2a1d1f..756f66726 100644
--- a/client/src/app/videos/video-watch/video-watch.component.ts
+++ b/client/src/app/videos/video-watch/video-watch.component.ts
@@ -229,8 +229,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
229 } 229 }
230 230
231 canUserUpdateVideo() { 231 canUserUpdateVideo() {
232 return this.authService.getUser() !== null && 232 return this.video.isUpdatableBy(this.authService.getUser());
233 this.authService.getUser().username === this.video.author;
234 } 233 }
235 234
236 isVideoRemovable() { 235 isVideoRemovable() {