diff options
Diffstat (limited to 'client/src/app/videos/shared/video.model.ts')
-rw-r--r-- | client/src/app/videos/shared/video.model.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/client/src/app/videos/shared/video.model.ts b/client/src/app/videos/shared/video.model.ts index 404e3bf45..1cfb312b6 100644 --- a/client/src/app/videos/shared/video.model.ts +++ b/client/src/app/videos/shared/video.model.ts | |||
@@ -85,8 +85,12 @@ export class Video { | |||
85 | this.by = Video.createByString(hash.author, hash.podHost); | 85 | this.by = Video.createByString(hash.author, hash.podHost); |
86 | } | 86 | } |
87 | 87 | ||
88 | isRemovableBy(user: User) { | 88 | isRemovableBy(user) { |
89 | return this.isLocal === true && user && this.author === user.username; | 89 | return user && this.isLocal === true && (this.author === user.username || user.isAdmin() === true); |
90 | } | ||
91 | |||
92 | isBlackistableBy(user) { | ||
93 | return user && user.isAdmin() === true && this.isLocal === false; | ||
90 | } | 94 | } |
91 | 95 | ||
92 | isVideoNSFWForUser(user: User) { | 96 | isVideoNSFWForUser(user: User) { |