aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-22 09:03:45 +0100
committerChocobozzz <me@florianbigard.com>2018-02-22 09:03:45 +0100
commit6221f311de0eb8f2a9e7e4a77b8cb0ecbde6dfcd (patch)
tree895e833221877e5f2c4bf291a7cd1bda05cf8865 /client/src/app/shared
parent9f4183c9b57acd382668d49e86b0001bcd55550f (diff)
downloadPeerTube-6221f311de0eb8f2a9e7e4a77b8cb0ecbde6dfcd.tar.gz
PeerTube-6221f311de0eb8f2a9e7e4a77b8cb0ecbde6dfcd.tar.zst
PeerTube-6221f311de0eb8f2a9e7e4a77b8cb0ecbde6dfcd.zip
Add ability to update another user video
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/video/video-details.model.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/shared/video/video-details.model.ts b/client/src/app/shared/video/video-details.model.ts
index 4e4f64c7b..a22ed68da 100644
--- a/client/src/app/shared/video/video-details.model.ts
+++ b/client/src/app/shared/video/video-details.model.ts
@@ -88,6 +88,6 @@ export class VideoDetails extends Video implements VideoDetailsServerModel {
88 } 88 }
89 89
90 isUpdatableBy (user: AuthUser) { 90 isUpdatableBy (user: AuthUser) {
91 return user && this.isLocal === true && user.username === this.accountName 91 return user && this.isLocal === true && (this.accountName === user.username || user.hasRight(UserRight.UPDATE_ANY_VIDEO))
92 } 92 }
93} 93}