aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators
diff options
context:
space:
mode:
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()