fix: #8311, fix allowUserHomePage value

was always sending 1 even if allowUserHomePage was disabled in acp
v1.18.x
Barış Soner Uşaklı 5 years ago
parent 0e58fa33eb
commit 1ba6929cb3

@ -108,7 +108,7 @@ settingsController.get = async function (req, res, next) {
userData.disableCustomUserSkins = meta.config.disableCustomUserSkins || 0; userData.disableCustomUserSkins = meta.config.disableCustomUserSkins || 0;
userData.allowUserHomePage = meta.config.allowUserHomePage || 1; userData.allowUserHomePage = meta.config.allowUserHomePage === 1 ? 1 : 0;
userData.hideFullname = meta.config.hideFullname || 0; userData.hideFullname = meta.config.hideFullname || 0;
userData.hideEmail = meta.config.hideEmail || 0; userData.hideEmail = meta.config.hideEmail || 0;

Loading…
Cancel
Save