diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2021-01-20 23:39:51 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2021-01-21 00:16:34 +0100 |
commit | f8aa0154b6638cee878db312918b03332d49e458 (patch) | |
tree | 5d4e50565d15ccbe76886b9774de068687d67bcb /client/src/app/shared | |
parent | 18621fd63f1baf4198c8691e996c47151613eb39 (diff) | |
download | PeerTube-f8aa0154b6638cee878db312918b03332d49e458.tar.gz PeerTube-f8aa0154b6638cee878db312918b03332d49e458.tar.zst PeerTube-f8aa0154b6638cee878db312918b03332d49e458.zip |
Forbid video deletion or ownership change for non-admin
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/shared-main/video/video.model.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-main/video/video.model.ts b/client/src/app/shared/shared-main/video/video.model.ts index adb6e884f..d51dfbc6d 100644 --- a/client/src/app/shared/shared-main/video/video.model.ts +++ b/client/src/app/shared/shared-main/video/video.model.ts | |||
@@ -180,7 +180,7 @@ export class Video implements VideoServerModel { | |||
180 | } | 180 | } |
181 | 181 | ||
182 | isRemovableBy (user: AuthUser) { | 182 | isRemovableBy (user: AuthUser) { |
183 | return user && this.isLocal === true && (this.account.name === user.username || user.hasRight(UserRight.REMOVE_ANY_VIDEO)) | 183 | return user && this.isLocal === true && user.hasRight(UserRight.REMOVE_ANY_VIDEO) |
184 | } | 184 | } |
185 | 185 | ||
186 | isBlockableBy (user: AuthUser) { | 186 | isBlockableBy (user: AuthUser) { |