diff options
Diffstat (limited to 'server/middlewares/validators/videos.ts')
-rw-r--r-- | server/middlewares/validators/videos.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/videos.ts b/server/middlewares/validators/videos.ts index e8cb2ae03..1acb306c0 100644 --- a/server/middlewares/validators/videos.ts +++ b/server/middlewares/validators/videos.ts | |||
@@ -253,7 +253,7 @@ function checkUserCanDeleteVideo (user: UserModel, video: VideoModel, res: expre | |||
253 | } | 253 | } |
254 | 254 | ||
255 | // Check if the user can delete the video | 255 | // Check if the user can delete the video |
256 | // The user can delete it if s/he is an admin | 256 | // The user can delete it if he has the right |
257 | // Or if s/he is the video's account | 257 | // Or if s/he is the video's account |
258 | const account = video.VideoChannel.Account | 258 | const account = video.VideoChannel.Account |
259 | if (user.hasRight(UserRight.REMOVE_ANY_VIDEO) === false && account.userId !== user.id) { | 259 | if (user.hasRight(UserRight.REMOVE_ANY_VIDEO) === false && account.userId !== user.id) { |