diff --git a/src/groups/membership.js b/src/groups/membership.js index 17e70a12dc..14f34f0084 100644 --- a/src/groups/membership.js +++ b/src/groups/membership.js @@ -189,9 +189,9 @@ module.exports = function(Groups) { if (!checks.exists) { return next(new Error('[[error:no-group]]')); } else if (checks.isMember) { - return next(new Error('[[error:group-already-member]]')); + return callback(); } else if (type === 'invite' && checks.isInvited) { - return next(new Error('[[error:group-already-invited]]')); + return callback(); } else if (type === 'request' && checks.isPending) { return next(new Error('[[error:group-already-requested]]')); }