diff options
Diffstat (limited to 'server/middlewares/validators/video-channels.ts')
-rw-r--r-- | server/middlewares/validators/video-channels.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/middlewares/validators/video-channels.ts b/server/middlewares/validators/video-channels.ts index 53416a857..f0ead24e3 100644 --- a/server/middlewares/validators/video-channels.ts +++ b/server/middlewares/validators/video-channels.ts | |||
@@ -50,7 +50,7 @@ const videoChannelsUpdateValidator = [ | |||
50 | // We need to make additional checks | 50 | // We need to make additional checks |
51 | if (res.locals.videoChannel.isOwned() === false) { | 51 | if (res.locals.videoChannel.isOwned() === false) { |
52 | return res.status(403) | 52 | return res.status(403) |
53 | .json({ error: 'Cannot update video channel of another pod' }) | 53 | .json({ error: 'Cannot update video channel of another server' }) |
54 | .end() | 54 | .end() |
55 | } | 55 | } |
56 | 56 | ||
@@ -113,7 +113,7 @@ function checkUserCanDeleteVideoChannel (res: express.Response, callback: () => | |||
113 | // Retrieve the user who did the request | 113 | // Retrieve the user who did the request |
114 | if (res.locals.videoChannel.isOwned() === false) { | 114 | if (res.locals.videoChannel.isOwned() === false) { |
115 | return res.status(403) | 115 | return res.status(403) |
116 | .json({ error: 'Cannot remove video channel of another pod.' }) | 116 | .json({ error: 'Cannot remove video channel of another server.' }) |
117 | .end() | 117 | .end() |
118 | } | 118 | } |
119 | 119 | ||