Fix lint
This commit is contained in:
parent
9772280e99
commit
9b2a054e54
|
@ -251,7 +251,7 @@ export class Video implements VideoServerModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
hasSeeAllVideosRight (user: AuthUser) {
|
hasSeeAllVideosRight (user: AuthUser) {
|
||||||
return user && user.hasRight(UserRight.SEE_ALL_VIDEOS)
|
return user?.hasRight(UserRight.SEE_ALL_VIDEOS)
|
||||||
}
|
}
|
||||||
|
|
||||||
isOwnerOrHasSeeAllVideosRight (user: AuthUser) {
|
isOwnerOrHasSeeAllVideosRight (user: AuthUser) {
|
||||||
|
@ -278,8 +278,7 @@ export class Video implements VideoServerModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
canRunForcedTranscoding (user: AuthUser) {
|
canRunForcedTranscoding (user: AuthUser) {
|
||||||
return this.isLocal &&
|
return this.isLocal && user?.hasRight(UserRight.RUN_VIDEO_TRANSCODING)
|
||||||
user && user.hasRight(UserRight.RUN_VIDEO_TRANSCODING)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
hasHLS () {
|
hasHLS () {
|
||||||
|
|
Loading…
Reference in New Issue