From 257ae98f652c8ee1b41c9eb59f4848d3112b94bf Mon Sep 17 00:00:00 2001 From: webchick Date: Tue, 26 Mar 2013 21:53:58 -0700 Subject: [PATCH] Issue #1919016 by dawehner, Berdir: Remove term_access() tag in TermStorageController::buildQuery(). --- .../lib/Drupal/Core/Entity/DatabaseStorageController.php | 3 +-- .../lib/Drupal/taxonomy/TermStorageController.php | 9 --------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/core/lib/Drupal/Core/Entity/DatabaseStorageController.php b/core/lib/Drupal/Core/Entity/DatabaseStorageController.php index 1c7d9fd13d4..e57f4bb4fbb 100644 --- a/core/lib/Drupal/Core/Entity/DatabaseStorageController.php +++ b/core/lib/Drupal/Core/Entity/DatabaseStorageController.php @@ -320,8 +320,7 @@ class DatabaseStorageController implements EntityStorageControllerInterface { * being loaded needs to be augmented with additional data from another * table, such as loading node type into comments or vocabulary machine name * into terms, however it can also support $conditions on different tables. - * See Drupal\comment\CommentStorageController::buildQuery() or - * Drupal\taxonomy\TermStorageController::buildQuery() for examples. + * See Drupal\comment\CommentStorageController::buildQuery() for an example. * * @param array|null $ids * An array of entity IDs, or NULL to load all entities. diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/TermStorageController.php b/core/modules/taxonomy/lib/Drupal/taxonomy/TermStorageController.php index d402c3a0e9c..c7dbd975927 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/TermStorageController.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/TermStorageController.php @@ -32,15 +32,6 @@ class TermStorageController extends DatabaseStorageController { return $entity; } - /** - * Overrides Drupal\Core\Entity\DatabaseStorageController::buildQuery(). - */ - protected function buildQuery($ids, $revision_id = FALSE) { - $query = parent::buildQuery($ids, $revision_id); - $query->addTag('term_access'); - return $query; - } - /** * Overrides Drupal\Core\Entity\DatabaseStorageController::buildPropertyQuery(). */