} from '../../../../../shared'
export class VideoDetails extends Video implements VideoDetailsServerModel {
- author: string
+ account: string
by: string
createdAt: Date
updatedAt: Date
uuid: string
isLocal: boolean
name: string
- podHost: string
+ serverHost: string
tags: string[]
thumbnailPath: string
thumbnailUrl: string
}
isRemovableBy (user: AuthUser) {
- return user && this.isLocal === true && (this.author === user.username || user.hasRight(UserRight.REMOVE_ANY_VIDEO))
+ return user && this.isLocal === true && (this.account === user.username || user.hasRight(UserRight.REMOVE_ANY_VIDEO))
}
isBlackistableBy (user: AuthUser) {
}
isUpdatableBy (user: AuthUser) {
- return user && this.isLocal === true && user.username === this.author
+ return user && this.isLocal === true && user.username === this.account
}
}