Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3174996
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3174996
Commits
44b98ffa
Commit
44b98ffa
authored
11 years ago
by
Alex Pott
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2187313
by ParisLiakos: Remove reintroduced category code in aggregator .
parent
e7fae35e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/modules/aggregator/aggregator.services.yml
+0
-8
0 additions, 8 deletions
core/modules/aggregator/aggregator.services.yml
core/modules/aggregator/lib/Drupal/aggregator/Access/CategoriesAccessCheck.php
+0
-45
0 additions, 45 deletions
...or/lib/Drupal/aggregator/Access/CategoriesAccessCheck.php
with
0 additions
and
53 deletions
core/modules/aggregator/aggregator.services.yml
+
0
−
8
View file @
44b98ffa
...
...
@@ -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'
]
This diff is collapsed.
Click to expand it.
core/modules/aggregator/lib/Drupal/aggregator/Access/CategoriesAccessCheck.php
deleted
100644 → 0
+
0
−
45
View file @
e7fae35e
<?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
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment