aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main/video
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/shared-main/video')
-rw-r--r--client/src/app/shared/shared-main/video/video.model.ts4
1 files changed, 4 insertions, 0 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 d51dfbc6d..fb00c11ff 100644
--- a/client/src/app/shared/shared-main/video/video.model.ts
+++ b/client/src/app/shared/shared-main/video/video.model.ts
@@ -179,6 +179,10 @@ export class Video implements VideoServerModel {
179 return serverConfig.instance.defaultNSFWPolicy !== 'display' 179 return serverConfig.instance.defaultNSFWPolicy !== 'display'
180 } 180 }
181 181
182 isDownloadableBy (user: AuthUser) {
183 return user && this.isLocal === true && user.hasRight(UserRight.SEE_ALL_VIDEOS)
184 }
185
182 isRemovableBy (user: AuthUser) { 186 isRemovableBy (user: AuthUser) {
183 return user && this.isLocal === true && user.hasRight(UserRight.REMOVE_ANY_VIDEO) 187 return user && this.isLocal === true && user.hasRight(UserRight.REMOVE_ANY_VIDEO)
184 } 188 }