Browse Source

fix: Public option not set correctly during setup wizard

NGPixel 8 years ago
parent
commit
a8b8fc417c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/configure.js

+ 1 - 1
server/configure.js

@@ -320,7 +320,7 @@ module.exports = (port, spinner) => {
           maxOtherFileSize: (conf.uploads && _.isNumber(conf.uploads.maxOtherFileSize)) ? conf.uploads.maxOtherFileSize : 100
           maxOtherFileSize: (conf.uploads && _.isNumber(conf.uploads.maxOtherFileSize)) ? conf.uploads.maxOtherFileSize : 100
         }
         }
         conf.lang = req.body.lang
         conf.lang = req.body.lang
-        conf.public = (conf.public === true)
+        conf.public = (req.body.public === true)
         if (conf.auth && conf.auth.local) {
         if (conf.auth && conf.auth.local) {
           conf.auth.local = { enabled: true }
           conf.auth.local = { enabled: true }
         } else {
         } else {