ActivityPub-federated video streaming platform using P2P directly in your web browser
Server: fix video remoe validation
Chocobozzz8fd66b75bfbd
diff --git a/server/middlewares/validators/videos.js b/server/middlewares/validators/videos.jsindex 1b6dbccf08..295ed05fa0 100644--- a/server/middlewares/validators/videos.js+++ b/server/middlewares/validators/videos.js@@ -78,7 +78,7 @@ function videosRemove (req, res, next) {return res.status(403).send('Cannot remove video of another pod')}- if (res.locals.video.authorId !== res.locals.oauth.token.User.id) {+ if (res.locals.video.Author.userId !== res.locals.oauth.token.User.id) {return res.status(403).send('Cannot remove video of another user')}