diff --git a/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockAccessController.php b/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockAccessController.php index 0dda715..c1d65be 100644 --- a/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockAccessController.php +++ b/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockAccessController.php @@ -23,7 +23,7 @@ protected function checkAccess(EntityInterface $entity, $operation, $langcode, A if ($operation === 'view') { return TRUE; } - parent::checkAccess($entity, $operation, $langcode, $account); + return parent::checkAccess($entity, $operation, $langcode, $account); } } diff --git a/core/modules/block/custom_block/lib/Drupal/custom_block/Entity/CustomBlockType.php b/core/modules/block/custom_block/lib/Drupal/custom_block/Entity/CustomBlockType.php index 86131a4..4fa8439 100644 --- a/core/modules/block/custom_block/lib/Drupal/custom_block/Entity/CustomBlockType.php +++ b/core/modules/block/custom_block/lib/Drupal/custom_block/Entity/CustomBlockType.php @@ -22,6 +22,7 @@ * module = "custom_block", * controllers = { * "storage" = "Drupal\Core\Config\Entity\ConfigStorageController", + * "access" = "Drupal\Core\Entity\EntityAccessController", * "form" = { * "default" = "Drupal\custom_block\CustomBlockTypeFormController", * "add" = "Drupal\custom_block\CustomBlockTypeFormController", diff --git a/core/modules/entity/lib/Drupal/entity/Entity/EntityFormMode.php b/core/modules/entity/lib/Drupal/entity/Entity/EntityFormMode.php index 1ac34da..c0b1c6c 100644 --- a/core/modules/entity/lib/Drupal/entity/Entity/EntityFormMode.php +++ b/core/modules/entity/lib/Drupal/entity/Entity/EntityFormMode.php @@ -35,6 +35,7 @@ * module = "entity", * controllers = { * "list" = "Drupal\entity\EntityFormModeListController", + * "access" = "Drupal\Core\Entity\EntityAccessController", * "form" = { * "add" = "Drupal\entity\Form\EntityFormModeAddForm", * "edit" = "Drupal\entity\Form\EntityDisplayModeEditForm", diff --git a/core/modules/system/lib/Drupal/system/Entity/Action.php b/core/modules/system/lib/Drupal/system/Entity/Action.php index e2e7650..5192858 100644 --- a/core/modules/system/lib/Drupal/system/Entity/Action.php +++ b/core/modules/system/lib/Drupal/system/Entity/Action.php @@ -24,6 +24,7 @@ * module = "system", * controllers = { * "storage" = "Drupal\Core\Config\Entity\ConfigStorageController", + * "access" = "Drupal\Core\Entity\EntityAccessController" * }, * admin_permission = "administer actions", * config_prefix = "system.action", diff --git a/core/modules/user/lib/Drupal/user/Entity/Role.php b/core/modules/user/lib/Drupal/user/Entity/Role.php index d51ef15..5bb6631 100644 --- a/core/modules/user/lib/Drupal/user/Entity/Role.php +++ b/core/modules/user/lib/Drupal/user/Entity/Role.php @@ -27,7 +27,7 @@ * "delete" = "Drupal\user\Form\UserRoleDelete" * } * }, - * admin_permission = "administer permission", + * admin_permission = "administer permissions", * config_prefix = "user.role", * entity_keys = { * "id" = "id",