diff options
Diffstat (limited to 'server/middlewares')
-rw-r--r-- | server/middlewares/validators/shared/videos.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/shared/videos.ts b/server/middlewares/validators/shared/videos.ts index 2c2ae3811..e3a98c58f 100644 --- a/server/middlewares/validators/shared/videos.ts +++ b/server/middlewares/validators/shared/videos.ts | |||
@@ -144,7 +144,7 @@ async function checkCanSeeAuthVideo (req: Request, res: Response, video: MVideoI | |||
144 | 144 | ||
145 | const videoWithRights = (video as MVideoWithRights).VideoChannel?.Account?.userId | 145 | const videoWithRights = (video as MVideoWithRights).VideoChannel?.Account?.userId |
146 | ? video as MVideoWithRights | 146 | ? video as MVideoWithRights |
147 | : await VideoModel.loadAndPopulateAccountAndServerAndTags(video.id) | 147 | : await VideoModel.loadFull(video.id) |
148 | 148 | ||
149 | const privacy = videoWithRights.privacy | 149 | const privacy = videoWithRights.privacy |
150 | 150 | ||