mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: index should be cid
This commit is contained in:
@@ -91,7 +91,7 @@ module.exports = function (SocketPosts) {
|
|||||||
]);
|
]);
|
||||||
const cidToAllowed = _.zip(uniqCids, canRead);
|
const cidToAllowed = _.zip(uniqCids, canRead);
|
||||||
const checks = cids.map(
|
const checks = cids.map(
|
||||||
(cid, index) => isAdmin || isMod[index] || (cidToAllowed[index] && !!meta.config.votesArePublic)
|
(cid, index) => isAdmin || isMod[index] || (cidToAllowed[cid] && !!meta.config.votesArePublic)
|
||||||
);
|
);
|
||||||
return isArray ? checks : checks[0];
|
return isArray ? checks : checks[0];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user