diff --git a/core/modules/system/src/Entity/ActionAccessControlHandler.php b/core/modules/system/src/Entity/ActionAccessControlHandler.php index b7f0071..8d336f8 100644 --- a/core/modules/system/src/Entity/ActionAccessControlHandler.php +++ b/core/modules/system/src/Entity/ActionAccessControlHandler.php @@ -20,7 +20,7 @@ class ActionAccessControlHandler extends EntityAccessControlHandler { * {@inheritdoc} */ protected function checkAccess(EntityInterface $entity, $operation, $langcode, AccountInterface $account) { - /** @var \Drupal\system\ActionConfigEntityInterface $entity $f */ + /** @var \Drupal\system\ActionConfigEntityInterface $entity */ return $entity->getPlugin()->access($operation, $account, TRUE); } diff --git a/core/modules/system/src/Plugin/views/field/BulkForm.php b/core/modules/system/src/Plugin/views/field/BulkForm.php index f81d1e4..8fcf9df 100644 --- a/core/modules/system/src/Plugin/views/field/BulkForm.php +++ b/core/modules/system/src/Plugin/views/field/BulkForm.php @@ -227,7 +227,7 @@ protected function getBulkOptions($filtered = TRUE) { // Filter out options without access to it. // @fixme Find out the right operation. - if (!$action->access('view', $this->view->getUser())) { + if (!$action->access('execute', $this->view->getUser())) { continue; } $in_selected = in_array($id, $this->options['selected_actions']); @@ -272,7 +272,7 @@ public function viewsFormSubmit(&$form, FormStateInterface $form_state) { $action = $this->actions[$form_state->getValue('action')]; - if (!$action->access('view', $this->view->getUser())) { + if (!$action->access('execute', $this->view->getUser())) { throw new AccessDeniedHttpException(); }