Server: fix video remoe validation

pull/30/head
Chocobozzz 2016-12-30 12:39:49 +01:00
parent efe923bcda
commit 8fd66b75bf
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ function videosRemove (req, res, next) {
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')
}