fix typo in groups.join

v1.18.x
barisusakli 9 years ago
parent 96fe6d288f
commit 5fe2ebf660

@ -47,7 +47,7 @@ SocketGroups.join = function(socket, data, callback) {
return callback(new Error('[[error:join-requests-disabled]]')); return callback(new Error('[[error:join-requests-disabled]]'));
} }
if (!results.groupData.isPrivate || results.isAdmin) { if (!results.groupData.private || results.isAdmin) {
groups.join(data.groupName, socket.uid, callback); groups.join(data.groupName, socket.uid, callback);
} else { } else {
groups.requestMembership(data.groupName, socket.uid, callback); groups.requestMembership(data.groupName, socket.uid, callback);

Loading…
Cancel
Save