|
@@ -255,6 +255,8 @@ module.exports = (crowi) => {
|
|
|
envGcsUploadNamespace: crowi.configManager.getConfigFromEnvVars('crowi', 'gcs:uploadNamespace'),
|
|
envGcsUploadNamespace: crowi.configManager.getConfigFromEnvVars('crowi', 'gcs:uploadNamespace'),
|
|
|
|
|
|
|
|
isEnabledPlugins: crowi.configManager.getConfig('crowi', 'plugin:isEnabledPlugins'),
|
|
isEnabledPlugins: crowi.configManager.getConfig('crowi', 'plugin:isEnabledPlugins'),
|
|
|
|
|
+
|
|
|
|
|
+ isMailPublished: crowi.configManager.getConfig('crowi', 'app:isMailPublished'),
|
|
|
};
|
|
};
|
|
|
return res.apiv3({ appSettingsParams });
|
|
return res.apiv3({ appSettingsParams });
|
|
|
|
|
|
|
@@ -284,12 +286,12 @@ module.exports = (crowi) => {
|
|
|
* schema:
|
|
* schema:
|
|
|
* $ref: '#/components/schemas/AppSettingParams'
|
|
* $ref: '#/components/schemas/AppSettingParams'
|
|
|
*/
|
|
*/
|
|
|
- router.put('/app-setting', loginRequiredStrictly, adminRequired, csrf, validator.appSetting, apiV3FormValidator, async(req, res) => {
|
|
|
|
|
- const requestAppSettingParams = {
|
|
|
|
|
|
|
+ router.put('/app-setting', loginRequiredStrictly, adminRequired, csrf, validator.appSetting, apiV3FormValidator, async(req, res) => { const requestAppSettingParams = {
|
|
|
'app:title': req.body.title,
|
|
'app:title': req.body.title,
|
|
|
'app:confidential': req.body.confidential,
|
|
'app:confidential': req.body.confidential,
|
|
|
'app:globalLang': req.body.globalLang,
|
|
'app:globalLang': req.body.globalLang,
|
|
|
'app:fileUpload': req.body.fileUpload,
|
|
'app:fileUpload': req.body.fileUpload,
|
|
|
|
|
+ 'app:isMailPublished': req.body.isMailPublished
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
@@ -299,6 +301,7 @@ module.exports = (crowi) => {
|
|
|
confidential: crowi.configManager.getConfig('crowi', 'app:confidential'),
|
|
confidential: crowi.configManager.getConfig('crowi', 'app:confidential'),
|
|
|
globalLang: crowi.configManager.getConfig('crowi', 'app:globalLang'),
|
|
globalLang: crowi.configManager.getConfig('crowi', 'app:globalLang'),
|
|
|
fileUpload: crowi.configManager.getConfig('crowi', 'app:fileUpload'),
|
|
fileUpload: crowi.configManager.getConfig('crowi', 'app:fileUpload'),
|
|
|
|
|
+ isMailPublished: crowi.configManager.getConfig('crowi', 'app:isMailPublished'),
|
|
|
};
|
|
};
|
|
|
return res.apiv3({ appSettingParams });
|
|
return res.apiv3({ appSettingParams });
|
|
|
}
|
|
}
|