chore(deps): update dependency eslint-config-airbnb-base to v13 (#6599)

* chore(deps): update dependency eslint-config-airbnb-base to v13

* chore: #6599, linting 😬
This commit is contained in:
renovate[bot]
2018-11-07 15:53:14 -05:00
committed by Julian Lam
parent eb0a322d7f
commit 64b9dabff8
109 changed files with 287 additions and 309 deletions

View File

@@ -115,15 +115,15 @@ module.exports = function (privileges) {
var isModOf = {};
cids = cids.filter(function (cid, index) {
isModOf[cid] = results.isModerators[index];
return !results.categories[index].disabled &&
(results.allowedTo[index] || results.isAdmin || results.isModerators[index]);
return !results.categories[index].disabled
&& (results.allowedTo[index] || results.isAdmin || results.isModerators[index]);
});
const cidsSet = new Set(cids);
pids = postData.filter(function (post) {
return post.topic && cidsSet.has(post.topic.cid) &&
((!post.topic.deleted && !post.deleted) || results.isAdmin || isModOf[post.cid]);
return post.topic && cidsSet.has(post.topic.cid)
&& ((!post.topic.deleted && !post.deleted) || results.isAdmin || isModOf[post.cid]);
}).map(post => post.pid);
plugins.fireHook('filter:privileges.posts.filter', {