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')
}