From f8aa0154b6638cee878db312918b03332d49e458 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 20 Jan 2021 23:39:51 +0100 Subject: Forbid video deletion or ownership change for non-admin --- client/src/app/shared/shared-main/video/video.model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/src/app/shared') 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 { } isRemovableBy (user: AuthUser) { - return user && this.isLocal === true && (this.account.name === user.username || user.hasRight(UserRight.REMOVE_ANY_VIDEO)) + return user && this.isLocal === true && user.hasRight(UserRight.REMOVE_ANY_VIDEO) } isBlockableBy (user: AuthUser) { -- cgit v1.2.3