Add comments federation tests
This commit is contained in:
parent
ae45f988bb
commit
d50acfab69
10 changed files with 136 additions and 57 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue