fixed my logic fail

v1.18.x
Barış Soner Uşaklı 10 years ago
parent c7b5cd48ba
commit 203d4d052a

@ -102,7 +102,7 @@ module.exports = function(privileges) {
} }
cids = cids.filter(function(cid, index) { cids = cids.filter(function(cid, index) {
return !results.categories[index].disabled || return !results.categories[index].disabled &&
(results.allowedTo[index] || results.isAdmin || results.isModerators[index]); (results.allowedTo[index] || results.isAdmin || results.isModerators[index]);
}); });

Loading…
Cancel
Save