diff --git a/libs/webServerPaths.js b/libs/webServerPaths.js index 1fb2dba3..fba78ba7 100644 --- a/libs/webServerPaths.js +++ b/libs/webServerPaths.js @@ -458,7 +458,7 @@ module.exports = function(s,config,lang,app,io){ failedAuthentication(req.body.function,req.body.mail) } } - if(req.body.function === 'super'){ + if(req.body.function === 'super' && !config.superUserLoginDisabled){ const superLoginResponse = await superLogin(req.body.mail,req.body.pass); if(superLoginResponse.ok){ renderPage(config.renderPaths.super,{