v1.18.x
Barış Soner Uşaklı 8 years ago
parent 50367a971e
commit 22131640fd

@ -123,7 +123,7 @@ middleware.privateUploads = function (req, res, next) {
if (req.user || parseInt(meta.config.privateUploads, 10) !== 1) { if (req.user || parseInt(meta.config.privateUploads, 10) !== 1) {
return next(); return next();
} }
if (req.path.startsWith('/assets/uploads/files')) { if (req.path.startsWith(nconf.get('relative_path') + '/assets/uploads/files')) {
return res.status(403).json('not-allowed'); return res.status(403).json('not-allowed');
} }
next(); next();

Loading…
Cancel
Save