diff options
Diffstat (limited to 'server/middlewares/validators/videos')
-rw-r--r-- | server/middlewares/validators/videos/videos.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/videos/videos.ts b/server/middlewares/validators/videos/videos.ts index 1449903b7..53a2f193d 100644 --- a/server/middlewares/validators/videos/videos.ts +++ b/server/middlewares/validators/videos/videos.ts | |||
@@ -270,7 +270,7 @@ const videosAcceptChangeOwnershipValidator = [ | |||
270 | 270 | ||
271 | const user = res.locals.oauth.token.User | 271 | const user = res.locals.oauth.token.User |
272 | const videoChangeOwnership = res.locals.videoChangeOwnership | 272 | const videoChangeOwnership = res.locals.videoChangeOwnership |
273 | const isAble = await user.isAbleToUploadVideo(videoChangeOwnership.Video.getOriginalFile()) | 273 | const isAble = await user.isAbleToUploadVideo(videoChangeOwnership.Video.getMaxQualityFile()) |
274 | if (isAble === false) { | 274 | if (isAble === false) { |
275 | res.status(403) | 275 | res.status(403) |
276 | .json({ error: 'The user video quota is exceeded with this video.' }) | 276 | .json({ error: 'The user video quota is exceeded with this video.' }) |