|
|
@ -158,7 +158,7 @@ SocketGroups.kick = isOwner(function(socket, data, callback) {
|
|
|
|
|
|
|
|
|
|
|
|
groups.ownership.isOwner(data.uid, data.groupName, function(err, isOwner) {
|
|
|
|
groups.ownership.isOwner(data.uid, data.groupName, function(err, isOwner) {
|
|
|
|
if (err) {
|
|
|
|
if (err) {
|
|
|
|
callback(err);
|
|
|
|
return callback(err);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
groups.kick(data.uid, data.groupName, isOwner, callback);
|
|
|
|
groups.kick(data.uid, data.groupName, isOwner, callback);
|
|
|
|
});
|
|
|
|
});
|
|
|
|