diff --git a/src/privileges/categories.js b/src/privileges/categories.js index 9c5c9f9f51..69aec85135 100644 --- a/src/privileges/categories.js +++ b/src/privileges/categories.js @@ -307,7 +307,7 @@ module.exports = function (privileges) { }; function giveOrRescind(method, privileges, cid, groupName, callback) { - async.each(privileges, function (privilege, next) { + async.eachSeries(privileges, function (privilege, next) { method('cid:' + cid + ':privileges:groups:' + privilege, groupName, next); }, callback); }