diff --git a/install/data/defaults.json b/install/data/defaults.json index 24918285d0..15267aeee1 100644 --- a/install/data/defaults.json +++ b/install/data/defaults.json @@ -35,6 +35,10 @@ "field": "allowLocalLogin", "value": 1 }, + { + "field": "allowAccountDelete", + "value": 1, + }, { "field": "allowFileUploads", "value": 0 diff --git a/src/controllers/api.js b/src/controllers/api.js index e6c3b820a9..b15422c157 100644 --- a/src/controllers/api.js +++ b/src/controllers/api.js @@ -30,6 +30,7 @@ apiController.getConfig = function(req, res, next) { config.allowGuestSearching = parseInt(meta.config.allowGuestSearching, 10) === 1; config.allowFileUploads = parseInt(meta.config.allowFileUploads, 10) === 1; config.allowTopicsThumbnail = parseInt(meta.config.allowTopicsThumbnail, 10) === 1; + config.allowAccountDelete = parseInt(meta.config.allowAccountDelete, 10) === 1; config.privateUserInfo = parseInt(meta.config.privateUserInfo, 10) === 1; config.usePagination = parseInt(meta.config.usePagination, 10) === 1; config.disableSocialButtons = parseInt(meta.config.disableSocialButtons, 10) === 1;