Problem/Motivation

When I try to delete messages, I get this error:

Drupal\Core\Entity\Query\QueryException: Entity queries must explicitly set whether the query should be access checked or not. See Drupal\Core\Entity\Query\QueryInterface::accessCheck(). in Drupal\Core\Entity\Query\Sql\Query->prepare() (line 144 of /app/web/core/lib/Drupal/Core/Entity/Query/Sql/Query.php).

Steps to reproduce

(With messages already created)
Go to /admin/config/message/message_delete_multiple
Select a message type
Press submit =>
"The website encountered an unexpected error. Please try again later."

Proposed resolution

Added accessCheck(FALSE) to query.

Issue fork message_ui-3380085

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

stephen Verdant created an issue. See original summary.

keshavv’s picture

Status: Active » Reviewed & tested by the community

I am able to reproduce the issue, And the given MR works well.

bluegeek9 made their first commit to this issue’s fork.

bluegeek9’s picture

Status: Reviewed & tested by the community » Fixed

I'll make a new release this weekend.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.