mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
cleanup
This commit is contained in:
@@ -158,7 +158,7 @@ SocketGroups.kick = isOwner(function(socket, data, callback) {
|
||||
|
||||
groups.ownership.isOwner(data.uid, data.groupName, function(err, isOwner) {
|
||||
if (err) {
|
||||
callback(err);
|
||||
return callback(err);
|
||||
}
|
||||
groups.kick(data.uid, data.groupName, isOwner, callback);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user