- Issue created by @glaze
- Status changed to Closed: works as designed
4 months ago 8:04am 6 September 2024
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 142 of /app/web/core/lib/Drupal/Core/Entity/Query/Sql/Query.php).
When saving an groups permissions Drupal throws an entity query exception on line 39 of group_permissions/src/Plugin/Validation/Constraint/UniqueReferenceFieldValidator.php.
Set permissions at a group type level and then modify those permissions at the group level.
Needs ->accessCheck(TRUE)
before the ->execute();
on line 39.
See Access checking must be explicitly specified on content entity queries β for more info.
I'm unsure if there are any other entity queries within the module that need to be updated as well.
Closed: works as designed
2.0
Code