From c1f3b94d67db5014856bc556f30ea3a5dc122f46 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 17 Sep 2014 17:16:03 -0400 Subject: [PATCH] closes #2073 --- install/data/defaults.json | 4 ++++ src/controllers/api.js | 1 + 2 files changed, 5 insertions(+) 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;