diff options
Diffstat (limited to 'client/src/app/shared/shared-main')
-rw-r--r-- | client/src/app/shared/shared-main/video/video.model.ts | 6 |
1 files changed, 6 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 8e275181c..612fcf16c 100644 --- a/client/src/app/shared/shared-main/video/video.model.ts +++ b/client/src/app/shared/shared-main/video/video.model.ts | |||
@@ -228,6 +228,12 @@ export class Video implements VideoServerModel { | |||
228 | return user && this.isLocal === true && (this.account.name === user.username || user.hasRight(UserRight.UPDATE_ANY_VIDEO)) | 228 | return user && this.isLocal === true && (this.account.name === user.username || user.hasRight(UserRight.UPDATE_ANY_VIDEO)) |
229 | } | 229 | } |
230 | 230 | ||
231 | isEditableBy (user: AuthUser, videoEditorEnabled: boolean) { | ||
232 | return videoEditorEnabled && | ||
233 | this.state?.id === VideoState.PUBLISHED && | ||
234 | this.isUpdatableBy(user) | ||
235 | } | ||
236 | |||
231 | canRemoveFiles (user: AuthUser) { | 237 | canRemoveFiles (user: AuthUser) { |
232 | return this.isLocal && | 238 | return this.isLocal && |
233 | user.hasRight(UserRight.MANAGE_VIDEO_FILES) && | 239 | user.hasRight(UserRight.MANAGE_VIDEO_FILES) && |