category privilege rescinding

v1.18.x
Julian Lam 10 years ago
parent 577a646adc
commit 8ba05c08fe

@ -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) {

Loading…
Cancel
Save