diff --git a/src/privileges/categories.js b/src/privileges/categories.js index 7662ef5913..5ff70730d4 100644 --- a/src/privileges/categories.js +++ b/src/privileges/categories.js @@ -143,6 +143,12 @@ module.exports = function(privileges) { }, callback); }; + privileges.categories.rescind = function(privileges, cid, groupName, callback) { + async.each(privileges, function(privilege, next) { + groups.leave('cid:' + cid + ':privileges:groups:' + privilege, groupName, next); + }, callback); + }; + privileges.categories.canMoveAllTopics = function(currentCid, targetCid, uid, callback) { async.parallel({ isAdministrator: function(next) {