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

Issue #3208265 by jonathanshaw, longwave: EntityQuery accessCheck:...

Issue #3208265 by jonathanshaw, longwave: EntityQuery accessCheck: comment_user_predelete() should not check access
parent 589f814d
No related branches found
No related tags found
No related merge requests found
......@@ -472,7 +472,7 @@ function comment_user_cancel($edit, UserInterface $account, $method) {
* Implements hook_ENTITY_TYPE_predelete() for user entities.
*/
function comment_user_predelete($account) {
$entity_query = \Drupal::entityQuery('comment');
$entity_query = \Drupal::entityQuery('comment')->accessCheck(FALSE);
$entity_query->condition('uid', $account->id());
$cids = $entity_query->execute();
$comment_storage = \Drupal::entityTypeManager()->getStorage('comment');
......
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