projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efe923b
)
Server: fix video remoe validation
author
Chocobozzz
<florian.bigard@gmail.com>
Fri, 30 Dec 2016 11:39:49 +0000
(12:39 +0100)
committer
Chocobozzz
<florian.bigard@gmail.com>
Fri, 30 Dec 2016 11:39:49 +0000
(12:39 +0100)
server/middlewares/validators/videos.js
patch
|
blob
|
history
diff --git
a/server/middlewares/validators/videos.js
b/server/middlewares/validators/videos.js
index 1b6dbccf08358f44706c04d86f1297596714f9be..295ed05fa054ad99fe2d1d88abe97feb0dfe0f9b 100644
(file)
--- a/
server/middlewares/validators/videos.js
+++ b/
server/middlewares/validators/videos.js
@@
-78,7
+78,7
@@
function videosRemove (req, res, next) {
return res.status(403).send('Cannot remove video of another pod')
}
- if (res.locals.video.
autho
rId !== res.locals.oauth.token.User.id) {
+ if (res.locals.video.
Author.use
rId !== res.locals.oauth.token.User.id) {
return res.status(403).send('Cannot remove video of another user')
}