mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 09:36:16 +01:00
fix typo in groups.join
This commit is contained in:
@@ -47,7 +47,7 @@ SocketGroups.join = function(socket, data, callback) {
|
||||
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);
|
||||
} else {
|
||||
groups.requestMembership(data.groupName, socket.uid, callback);
|
||||
|
||||
Reference in New Issue
Block a user