mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
closes #4008
This commit is contained in:
@@ -43,10 +43,10 @@ SocketGroups.join = function(socket, data, callback) {
|
|||||||
return callback(err);
|
return callback(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (checks.isPrivate && !checks.isAdmin) {
|
if (!checks.isPrivate || checks.isAdmin) {
|
||||||
groups.requestMembership(data.groupName, socket.uid, callback);
|
|
||||||
} else {
|
|
||||||
groups.join(data.groupName, socket.uid, callback);
|
groups.join(data.groupName, socket.uid, callback);
|
||||||
|
} else {
|
||||||
|
groups.requestMembership(data.groupName, socket.uid, callback);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user