@ -86,15 +86,16 @@ module.exports = function (middleware) {
}
return next();
if (parseInt(req.uid, 10) > 0 || !meta.config.autoDetectLang) {
const langs = await listCodes();
const lang = req.acceptsLanguages(langs);
if (!lang) {
if (meta.config.autoDetectLang && req.uid === 0) {
req.query.lang = lang;
next();
});