diff --git a/core/modules/aggregator/aggregator.services.yml b/core/modules/aggregator/aggregator.services.yml index c00b2ac5dd4a37d7189db568dd30479da642170a..e486b54d2698eabb2175ea6544009aa636e77728 100644 --- a/core/modules/aggregator/aggregator.services.yml +++ b/core/modules/aggregator/aggregator.services.yml @@ -8,11 +8,3 @@ services: plugin.manager.aggregator.processor: class: Drupal\aggregator\Plugin\AggregatorPluginManager arguments: [processor, '@container.namespaces', '@cache.cache', '@language_manager'] - access_check.aggregator.categories: - class: Drupal\aggregator\Access\CategoriesAccessCheck - arguments: ['@database'] - tags: - - { name: access_check, applies_to: _access_aggregator_categories } - aggregator.category.storage: - class: Drupal\aggregator\CategoryStorageController - arguments: ['@database'] diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Access/CategoriesAccessCheck.php b/core/modules/aggregator/lib/Drupal/aggregator/Access/CategoriesAccessCheck.php deleted file mode 100644 index 791edddc84c73717a3a0ae38c27da35d0a4304b0..0000000000000000000000000000000000000000 --- a/core/modules/aggregator/lib/Drupal/aggregator/Access/CategoriesAccessCheck.php +++ /dev/null @@ -1,45 +0,0 @@ -<?php - -/** - * @file - * Contains \Drupal\aggregator\Access\CategoriesAccess. - */ - -namespace Drupal\aggregator\Access; - -use Drupal\Core\Database\Connection; -use Drupal\Core\Routing\Access\AccessInterface; -use Drupal\Core\Session\AccountInterface; -use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\Routing\Route; - -/** - * Provides an access check for aggregator categories routes. - */ -class CategoriesAccessCheck implements AccessInterface { - - /** - * The database connection. - * - * @var \Drupal\Core\Database\Connection - */ - protected $database; - - /** - * Constructs a CategoriesAccessCheck object. - * - * @param \Drupal\Core\Database\Connection - * The database connection. - */ - public function __construct(Connection $database) { - $this->database = $database; - } - - /** - * {@inheritdoc} - */ - public function access(Route $route, Request $request, AccountInterface $account) { - return $account->hasPermission('access news feeds') && (bool) $this->database->queryRange('SELECT 1 FROM {aggregator_category}', 0, 1)->fetchField() ? static::ALLOW : static::DENY; - } - -}