Node.js based forum software built for the modern web
closes #4008
barisusakli77b94068410d
diff --git a/src/socket.io/groups.js b/src/socket.io/groups.jsindex 2b4246b625..2321588d7f 100644--- a/src/socket.io/groups.js+++ b/src/socket.io/groups.js@@ -43,10 +43,10 @@ SocketGroups.join = function(socket, data, callback) {return callback(err);}- if (checks.isPrivate && !checks.isAdmin) {- groups.requestMembership(data.groupName, socket.uid, callback);- } else {+ if (!checks.isPrivate || checks.isAdmin) {groups.join(data.groupName, socket.uid, callback);+ } else {+ groups.requestMembership(data.groupName, socket.uid, callback);}});});