aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-07-28 16:28:16 +0200
committerChocobozzz <me@florianbigard.com>2023-07-28 16:33:12 +0200
commit982edf32ae436424e9b1ebf7f13696e4871ce202 (patch)
treeb8ca5ae0c1fb27c014d22d4c5d0df63afbb5443a /server/models
parentce8d0b5aaeb968d774ab2390461eec687d4730f4 (diff)
downloadPeerTube-982edf32ae436424e9b1ebf7f13696e4871ce202.tar.gz
PeerTube-982edf32ae436424e9b1ebf7f13696e4871ce202.tar.zst
PeerTube-982edf32ae436424e9b1ebf7f13696e4871ce202.zip
Remove deprecated video query filter
Diffstat (limited to 'server/models')
-rw-r--r--server/models/video/video.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 2fe701436..73308182d 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -1639,7 +1639,7 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> {
1639 1639
1640 private static throwIfPrivateIncludeWithoutUser (include: VideoInclude, user: MUserAccountId) { 1640 private static throwIfPrivateIncludeWithoutUser (include: VideoInclude, user: MUserAccountId) {
1641 if (VideoModel.isPrivateInclude(include) && !user?.hasRight(UserRight.SEE_ALL_VIDEOS)) { 1641 if (VideoModel.isPrivateInclude(include) && !user?.hasRight(UserRight.SEE_ALL_VIDEOS)) {
1642 throw new Error('Try to filter all-local but user cannot see all videos') 1642 throw new Error('Try to include protected videos but user cannot see all videos')
1643 } 1643 }
1644 } 1644 }
1645 1645