dont allow guests to join groups

v1.18.x
barisusakli 10 years ago
parent b7602c6e80
commit 311fd00ecd

@ -642,6 +642,10 @@ var async = require('async'),
callback = callback || function() {};
if (!parseInt(uid, 10)) {
return callback(new Error('[[error:invalid-uid]]'));
}
Groups.exists(groupName, function(err, exists) {
if (err) {
return callback(err);

Loading…
Cancel
Save