소스 검색

fix: Public option not set correctly during setup wizard

NGPixel 8 년 전
부모
커밋
a8b8fc417c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
         }
         conf.lang = req.body.lang
-        conf.public = (conf.public === true)
+        conf.public = (req.body.public === true)
         if (conf.auth && conf.auth.local) {
           conf.auth.local = { enabled: true }
         } else {