Why can only administrators see blocks? I'm using the Paragraphs and Block field modules to display a list of nodes within the content of a page. This works great while authoring, but as soon as I log out from the administrator account, the node list vanishes from the page. The component is still there, but the content is not rendered.

Here's is the twig template for my block paragraph type:

{%
set classes = [
'paragraph',
'paragraph--type--' ~ paragraph.bundle|clean_class,
view_mode ? 'paragraph--view-mode--' ~ view_mode|clean_class,
'paragraph--id--' ~ paragraph.id.value,
]
%}

&lt;div{{ attributes.addClass(classes) }}&gt;
  {{ content }}
&lt;/div&gt;


Not a lot going on, as you can see.

Does anyone have any experience with the block field module and can walk me through this?

EDIT:

I did some digging into the block field module source, and determined that this is the line of code causing the failure:

if (!$block_instance || !$block_instance-&gt;access(\Drupal::currentUser())) {


More specifically, it's the second condition. So for whatever reason, the current user doesn't have access to the block instance unless the current user is an administrator. Does anyone know how to solve this?

EDIT 2: I should probably mention that the blocks I'm trying to show are created by a view. I double checked that the access property on the generated blocks should allow all user roles.

EDIT 3: I did a little more digging, and verified that if I return AccessResult::allowed() from Drupal\views\Plugin\Block\ViewsBlockBase::blockAccess, the problem disappears. So what's happening is the view is saying the block ID is inaccessible for some reason.

EDIT 4: I discovered that setting the "Bypass content access control" permission on all users fixes the issue. However, I'm not sure this is desirable. Is there a way to fix the issue without setting this?
FACEPALM

ok, I found the ideal solution. When I looked at my authored nodes in /admin/content, it listed them all as Status: Published. HOWEVER, when I selected all of them, selected "Publish Content" from the action dropdown, and hit "Apply to selected items", suddenly everything appeared in the view block field.

My guess is that something in the database needed to be updated. Seems like a bit of a bug, though - this should have been automatically handled by either Drupal or the block_field module.

Anyway, fixed now.