|
|
@@ -261,6 +261,7 @@ module.exports = (crowi) => {
|
|
|
|
|
|
isEnabledPlugins: crowi.configManager.getConfig('crowi', 'plugin:isEnabledPlugins'),
|
|
|
};
|
|
|
+ console.log(appSettingsParams.isEmailPublishedForNewUser);
|
|
|
return res.apiv3({ appSettingsParams });
|
|
|
|
|
|
});
|
|
|
@@ -289,7 +290,8 @@ module.exports = (crowi) => {
|
|
|
* schema:
|
|
|
* $ref: '#/components/schemas/AppSettingParams'
|
|
|
*/
|
|
|
- router.put('/app-setting', loginRequiredStrictly, adminRequired, csrf, validator.appSetting, apiV3FormValidator, async(req, res) => {
|
|
|
+ router.put('/app-setting', validator.appSetting, apiV3FormValidator, async(req, res) => {
|
|
|
+ console.log(req.body);
|
|
|
const requestAppSettingParams = {
|
|
|
'app:title': req.body.title,
|
|
|
'app:confidential': req.body.confidential,
|
|
|
@@ -297,7 +299,6 @@ module.exports = (crowi) => {
|
|
|
'customize:isEmailPublishedForNewUser': req.body.defaultEmailShow,
|
|
|
'app:fileUpload': req.body.fileUpload,
|
|
|
};
|
|
|
- console.log(requestAppSettingParams);
|
|
|
try {
|
|
|
await crowi.configManager.updateConfigsInTheSameNamespace('crowi', requestAppSettingParams);
|
|
|
const appSettingParams = {
|