diff --git a/core/modules/block_content/src/Plugin/Block/BlockContentBlock.php b/core/modules/block_content/src/Plugin/Block/BlockContentBlock.php index a42c356..b4596f1 100644 --- a/core/modules/block_content/src/Plugin/Block/BlockContentBlock.php +++ b/core/modules/block_content/src/Plugin/Block/BlockContentBlock.php @@ -142,8 +142,7 @@ public function blockSubmit($form, FormStateInterface $form_state) { */ protected function blockAccess(AccountInterface $account) { if ($this->getEntity()) { - return $this->entityManager->getAccessControlHandler('block_content') - ->access($this->getEntity(), 'view'); + return $this->getEntity()->access('view', $account, TRUE); } return AccessResult::forbidden(); }