mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 11:27:01 +02:00
closes #6291
This commit is contained in:
@@ -292,13 +292,7 @@ module.exports = function (Groups) {
|
||||
async.each(groups, function (groupName, next) {
|
||||
async.parallel([
|
||||
function (next) {
|
||||
Groups.isMember(uid, groupName, function (err, isMember) {
|
||||
if (!err && isMember) {
|
||||
Groups.leave(groupName, uid, next);
|
||||
} else {
|
||||
next();
|
||||
}
|
||||
});
|
||||
Groups.leave(groupName, uid, next);
|
||||
},
|
||||
function (next) {
|
||||
Groups.rejectMembership(groupName, uid, next);
|
||||
|
||||
Reference in New Issue
Block a user