Add ability to search video channels
[oweals/peertube.git] / server / middlewares / validators / videos.ts
index 53c32abb86f15bc3016961ca0fae054d04bfbe51..a2c8661522a21994061267fa359225dabc819e98 100644 (file)
@@ -137,7 +137,7 @@ const videosGetValidator = [
 
     // Video private or blacklisted
     if (video.privacy === VideoPrivacy.PRIVATE || video.VideoBlacklist) {
-      authenticate(req, res, () => {
+      return authenticate(req, res, () => {
         const user: UserModel = res.locals.oauth.token.User
 
         // Only the owner or a user that have blacklist rights can see the video