comparison core/lib/Drupal/Core/Entity/EntityDeleteMultipleAccessCheck.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
60 * 60 *
61 * @return \Drupal\Core\Access\AccessResult 61 * @return \Drupal\Core\Access\AccessResult
62 * Allowed or forbidden, neutral if tempstore is empty. 62 * Allowed or forbidden, neutral if tempstore is empty.
63 */ 63 */
64 public function access(AccountInterface $account, $entity_type_id) { 64 public function access(AccountInterface $account, $entity_type_id) {
65 if (!$this->requestStack->getCurrentRequest()->getSession()) { 65 if (!$this->requestStack->getCurrentRequest()->hasSession()) {
66 return AccessResult::neutral(); 66 return AccessResult::neutral();
67 } 67 }
68 $selection = $this->tempStore->get($account->id() . ':' . $entity_type_id); 68 $selection = $this->tempStore->get($account->id() . ':' . $entity_type_id);
69 if (empty($selection) || !is_array($selection)) { 69 if (empty($selection) || !is_array($selection)) {
70 return AccessResult::neutral(); 70 return AccessResult::neutral();