mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	fix tests, and groups.join duh
This commit is contained in:
		| @@ -13,6 +13,10 @@ SocketGroups.join = function(socket, data, callback) { | ||||
| 		return callback(new Error('[[error:invalid-data]]')); | ||||
| 	} | ||||
|  | ||||
| 	if (!parseInt(socket.uid, 10)) { | ||||
| 		return callback(new Error('[[error:invalid-uid]]')); | ||||
| 	} | ||||
|  | ||||
| 	if (meta.config.allowPrivateGroups !== '0') { | ||||
| 		async.parallel({ | ||||
| 			isAdmin: async.apply(user.isAdministrator, socket.uid), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user