aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2017-12-27 20:03:37 +0100
committerChocobozzz <me@florianbigard.com>2017-12-27 20:03:37 +0100
commitd50acfab69ce9e05b272dea6c4d34d52960ba14c (patch)
tree55ce8b70777603b772d2cecb96cd71aac9ccfb9c /server/middlewares/validators
parentae45f988bb5ea32152cca02a282d02599dbb633b (diff)
downloadPeerTube-d50acfab69ce9e05b272dea6c4d34d52960ba14c.tar.gz
PeerTube-d50acfab69ce9e05b272dea6c4d34d52960ba14c.tar.zst
PeerTube-d50acfab69ce9e05b272dea6c4d34d52960ba14c.zip
Add comments federation tests
Diffstat (limited to 'server/middlewares/validators')
-rw-r--r--server/middlewares/validators/video-channels.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/video-channels.ts b/server/middlewares/validators/video-channels.ts
index cc7d54c06..0e6eff493 100644
--- a/server/middlewares/validators/video-channels.ts
+++ b/server/middlewares/validators/video-channels.ts
@@ -51,7 +51,7 @@ const videoChannelsUpdateValidator = [
51 if (!await isVideoChannelExist(req.params.id, res)) return 51 if (!await isVideoChannelExist(req.params.id, res)) return
52 52
53 // We need to make additional checks 53 // We need to make additional checks
54 if (res.locals.videoChannel.isOwned() === false) { 54 if (res.locals.videoChannel.Actor.isOwned() === false) {
55 return res.status(403) 55 return res.status(403)
56 .json({ error: 'Cannot update video channel of another server' }) 56 .json({ error: 'Cannot update video channel of another server' })
57 .end() 57 .end()