From 2f0a0ae21789ada8429c91a253288f738857a19b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 18 Jan 2022 09:29:46 +0100 Subject: Upgrade uploadx dependency --- server/middlewares/validators/videos/videos.ts | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'server/middlewares/validators/videos') diff --git a/server/middlewares/validators/videos/videos.ts b/server/middlewares/validators/videos/videos.ts index 3a1a905f3..b3ffb7007 100644 --- a/server/middlewares/validators/videos/videos.ts +++ b/server/middlewares/validators/videos/videos.ts @@ -102,22 +102,6 @@ const videosAddLegacyValidator = getCommonVideoEditAttributes().concat([ } ]) -const videosResumableUploadIdValidator = [ - (req: express.Request, res: express.Response, next: express.NextFunction) => { - const user = res.locals.oauth.token.User - const uploadId = req.query.upload_id - - if (uploadId.startsWith(user.id + '-') !== true) { - return res.fail({ - status: HttpStatusCode.FORBIDDEN_403, - message: 'You cannot send chunks in another user upload' - }) - } - - return next() - } -] - /** * Gets called after the last PUT request */ @@ -566,7 +550,6 @@ export { videosAddLegacyValidator, videosAddResumableValidator, videosAddResumableInitValidator, - videosResumableUploadIdValidator, videosUpdateValidator, videosGetValidator, -- cgit v1.2.3