- if (!await checkCanSeeVideoIfPrivate(req, res, res.locals.videoAll)) {
- return res.fail({
- status: HttpStatusCode.FORBIDDEN_403,
- message: 'Cannot access to this ressource'
- })
- }
+ if (!await checkCanSeeVideo({ req, res, paramId: req.params.id, video: res.locals.videoAll })) return