fix filter condition

v1.18.x
barisusakli 11 years ago
parent 90513be321
commit 84aadc03fd

@ -244,9 +244,9 @@ var async = require('async'),
} }
topics = topics.filter(function(topic) { topics = topics.filter(function(topic) {
return !topic.category.disabled || return !topic.category.disabled &&
!topic.deleted || (topic.deleted && isAdminOrMod[topic.cid]) || (!topic.deleted || (topic.deleted && isAdminOrMod[topic.cid]) ||
parseInt(topic.uid, 10) === parseInt(uid, 10); parseInt(topic.uid, 10) === parseInt(uid, 10));
}); });
plugins.fireHook('filter:topics.get', topics, callback); plugins.fireHook('filter:topics.get', topics, callback);

Loading…
Cancel
Save