mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-30 18:46:01 +01:00 
			
		
		
		
	closes #3952
This commit is contained in:
		| @@ -144,6 +144,9 @@ SocketGroups.update = isOwner(function(socket, data, callback) { | ||||
|  | ||||
|  | ||||
| SocketGroups.kick = isOwner(function(socket, data, callback) { | ||||
| 	if (socket.uid === parseInt(data.uid, 10)) { | ||||
| 		return callback(new Error('[[error:cant-kick-self]]')); | ||||
| 	} | ||||
| 	groups.leave(data.groupName, data.uid, callback); | ||||
| }); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user