Skip to content
Snippets Groups Projects
Commit cb743398 authored by catch's avatar catch
Browse files

Issue #3203369 by jonathanshaw, andypost: EntityQuery accessCheck: aggregator module

parent b16784b6
No related branches found
No related tags found
6 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!1012Issue #3226887: Hreflang on non-canonical content pages,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10,!596Issue #3046532: deleting an entity reference field, used in a contextual view, makes the whole site unrecoverable,!496Issue #2463967: Use .user.ini file for PHP settings,!16Draft: Resolve #2081585 "History storage"
......@@ -144,7 +144,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
}
// Check for duplicate titles or URLs.
$query = $this->feedStorage->getQuery();
$query = $this->feedStorage->getQuery()->accessCheck(FALSE);
$condition = $query->orConditionGroup()
->condition('title', $feed['title'])
->condition('url', $feed['url']);
......
......@@ -53,7 +53,8 @@ public function loadByFeed($fid, $limit = NULL) {
* An array of the feed items.
*/
protected function executeFeedItemQuery(QueryInterface $query, $limit) {
$query->sort('timestamp', 'DESC')
$query->accessCheck(FALSE)
->sort('timestamp', 'DESC')
->sort('iid', 'DESC');
if (!empty($limit)) {
$query->pager($limit);
......
......@@ -259,6 +259,7 @@ public function postProcess(FeedInterface $feed) {
// Delete all items that are older than flush item timer.
$age = REQUEST_TIME - $aggregator_clear;
$result = $this->itemStorage->getQuery()
->accessCheck(FALSE)
->condition('fid', $feed->id())
->condition('timestamp', $age, '<')
->execute();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment