From d50acfab69ce9e05b272dea6c4d34d52960ba14c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 27 Dec 2017 20:03:37 +0100 Subject: Add comments federation tests --- server/middlewares/validators/video-channels.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/middlewares') 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 = [ if (!await isVideoChannelExist(req.params.id, res)) return // We need to make additional checks - if (res.locals.videoChannel.isOwned() === false) { + if (res.locals.videoChannel.Actor.isOwned() === false) { return res.status(403) .json({ error: 'Cannot update video channel of another server' }) .end() -- cgit v1.2.3