Using access helper in posts loop

I am able to successfully use {{#if access}}{{/if}} in post.hbs, and it behaves as expected. However, when I try to use it for a homepage post list, it blocks all posts, including ones that I should have access to. What am I missing?

Here’s a simplified example of what I’d like to do:

{{#foreach posts visibility="all"}}
    {{#if access}}