Closed (fixed)
Project:
Simplenews
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jul 2017 at 10:56 UTC
Updated:
13 Jul 2020 at 15:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
RaSpirit commentedThe issue is in entity query, as cron runs in context of anonymous user, so possible fix is attached in patch.
Comment #3
berdirThat would only make a difference if you actually have query alters doing something but then this could happen, yes.
However, this should use \Drupal\Core\Entity\Query\QueryInterface::accessCheck() then.
Comment #4
VitaliyDemchuk commentedWorking without patch
Comment #5
adamps commentedIssue summary does not clearly describe a sequence of events
Patch implies that QueryInterface will restrict the result based on permissions of the current user. Is there any evidence to support this? Closing based on #4.
Comment #6
berdirYes, entity queries respect node access by default, there's a way to opt out of that, which would be the better solution for this.
Comment #7
adamps commentedThanks @Berdir. So looks like this needs work:
Comment #8
adamps commentedComment #9
adamps commented