mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	closes #3585
This commit is contained in:
		| @@ -231,6 +231,10 @@ SocketUser.updateProfile = function(socket, data, callback) { | ||||
| 			return callback(err); | ||||
| 		} | ||||
|  | ||||
| 		if (parseInt(meta.config['username:disableEdit'], 10) === 1) { | ||||
| 			data.username = oldUserData.username; | ||||
| 		} | ||||
|  | ||||
| 		update(oldUserData, callback); | ||||
| 	}); | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user