mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 10:16:12 +01:00
closes #3994
This commit is contained in:
@@ -127,6 +127,10 @@ module.exports = function(SocketUser) {
|
||||
data.username = oldUserData.username;
|
||||
}
|
||||
|
||||
if (!isAdmin && parseInt(meta.config['email:disableEdit'], 10) === 1) {
|
||||
data.email = oldUserData.email;
|
||||
}
|
||||
|
||||
user.updateProfile(data.uid, data, next);
|
||||
},
|
||||
function (userData, next) {
|
||||
|
||||
Reference in New Issue
Block a user