mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 02:25:55 +01:00
Merge remote-tracking branch 'refs/remotes/origin/master' into group-chat
This commit is contained in:
@@ -148,6 +148,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