|
|
@ -29,9 +29,7 @@ module.exports = function (privileges) {
|
|
|
|
}, next);
|
|
|
|
}, next);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
function (results, next) {
|
|
|
|
function (results, next) {
|
|
|
|
var privData = _.fromPairs(privs.map(function (priv, i) {
|
|
|
|
var privData = _.zipObject(privs, results.privileges);
|
|
|
|
return [priv, results.privileges[i]];
|
|
|
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
var disabled = parseInt(results.disabled, 10) === 1;
|
|
|
|
var disabled = parseInt(results.disabled, 10) === 1;
|
|
|
|
var locked = parseInt(topic.locked, 10) === 1;
|
|
|
|
var locked = parseInt(topic.locked, 10) === 1;
|
|
|
|
var deleted = parseInt(topic.deleted, 10) === 1;
|
|
|
|
var deleted = parseInt(topic.deleted, 10) === 1;
|
|
|
|