Loading src/Plugin/Action/VboEnqueue.php +4 −6 Original line number Diff line number Diff line Loading @@ -174,14 +174,12 @@ class VboEnqueue extends ViewsBulkOperationsActionBase implements ContainerFacto * {@inheritdoc} */ public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) { if ($account->hasPermission('views bulk operations enqueue')) { $valid = TRUE; } else { $access = AccessResult::allowedIfHasPermission($account, 'views bulk operations enqueue'); if ($access->isAllowed() === FALSE) { $this->messenger()->addWarning($this->t("You don't have enough permissions to enqueue items.")); $valid = FALSE; } return $valid; return $return_as_object ? $access : $access->isAllowed(); } /** Loading Loading
src/Plugin/Action/VboEnqueue.php +4 −6 Original line number Diff line number Diff line Loading @@ -174,14 +174,12 @@ class VboEnqueue extends ViewsBulkOperationsActionBase implements ContainerFacto * {@inheritdoc} */ public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) { if ($account->hasPermission('views bulk operations enqueue')) { $valid = TRUE; } else { $access = AccessResult::allowedIfHasPermission($account, 'views bulk operations enqueue'); if ($access->isAllowed() === FALSE) { $this->messenger()->addWarning($this->t("You don't have enough permissions to enqueue items.")); $valid = FALSE; } return $valid; return $return_as_object ? $access : $access->isAllowed(); } /** Loading