check groupName and uid on groups.join

v1.18.x
barisusakli 9 years ago
parent d7f82f96b1
commit 3858f6777d

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

Loading…
Cancel
Save