From 2db9d595dd5a74740b56ab5b079a99d1a5b24f61 Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole Date: Wed, 12 Jun 2013 17:40:09 +0100 Subject: [PATCH] Issue 2102916: follow up by Berdir, HEAD Broken. --- .../lib/Drupal/menu_link/MenuLinkAccessController.php | 4 ++-- .../modules/system/lib/Drupal/system/MenuAccessController.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/modules/menu_link/lib/Drupal/menu_link/MenuLinkAccessController.php b/core/modules/menu_link/lib/Drupal/menu_link/MenuLinkAccessController.php index 15d02eb9285..c3fec7cf35f 100644 --- a/core/modules/menu_link/lib/Drupal/menu_link/MenuLinkAccessController.php +++ b/core/modules/menu_link/lib/Drupal/menu_link/MenuLinkAccessController.php @@ -9,7 +9,7 @@ namespace Drupal\menu_link; use Drupal\Core\Entity\EntityAccessController; use Drupal\Core\Entity\EntityInterface; -use Drupal\user\Plugin\Core\Entity\User; +use Drupal\Core\Session\AccountInterface; /** * Defines an access controller for the menu link entity. @@ -21,7 +21,7 @@ class MenuLinkAccessController extends EntityAccessController { /** * {@inheritdoc} */ - protected function checkAccess(EntityInterface $entity, $operation, $langcode, User $account) { + protected function checkAccess(EntityInterface $entity, $operation, $langcode, AccountInterface $account) { $access = user_access('administer menu', $account); if ($access && $operation == 'delete') { // Only items created by the menu module can be deleted. diff --git a/core/modules/system/lib/Drupal/system/MenuAccessController.php b/core/modules/system/lib/Drupal/system/MenuAccessController.php index 25f3e9c4b62..d955d959cc1 100644 --- a/core/modules/system/lib/Drupal/system/MenuAccessController.php +++ b/core/modules/system/lib/Drupal/system/MenuAccessController.php @@ -9,7 +9,7 @@ namespace Drupal\system; use Drupal\Core\Entity\EntityAccessController; use Drupal\Core\Entity\EntityInterface; -use Drupal\user\Plugin\Core\Entity\User; +use Drupal\Core\Session\AccountInterface; /** * Defines an access controller for the menu entity. @@ -21,7 +21,7 @@ class MenuAccessController extends EntityAccessController { /** * {@inheritdoc} */ - protected function checkAccess(EntityInterface $entity, $operation, $langcode, User $account) { + protected function checkAccess(EntityInterface $entity, $operation, $langcode, AccountInterface $account) { if ($operation == 'delete') { // System-defined menus may not be deleted. // @todo Refactor https://drupal.org/node/1882552