upgrading administrator groups as well

v1.18.x
Julian Lam 10 years ago
parent dd38ee96fa
commit fa27461abc

@ -695,6 +695,10 @@ Upgrade.upgrade = function(callback) {
tasks.push(async.apply(db.setObjectField, 'groupslug:groupname', Utils.slugify(groupObj.name), groupObj.name));
});
// Administrator group
tasks.push(async.apply(db.setObjectField, 'group:administrators', 'slug', 'administrators'));
tasks.push(async.apply(db.setObjectField, 'groupslug:groupname', 'administrators', 'administrators'));
async.parallel(tasks, function(err) {
if (err) {
winston.error('[2015/01/19] Error encountered while Generating group slugs');

Loading…
Cancel
Save