Skip to content
Snippets Groups Projects

Issue #2707689: NodeForm::actions() checks for delete access on new entities

3 files
+ 51
4
Compare changes
  • Side-by-side
  • Inline
Files
3
  • 59e21652
    Issue #3171047 by rpayanm, catch, jonathanshaw, Berdir, xjm, larowlan,... · 59e21652
    Jess authored
    Issue #3171047 by rpayanm, catch, jonathanshaw, Berdir, xjm, larowlan, hchonov, mxr576: Entity query in UniqueFieldValueValidator must not use access checking
@@ -23,10 +23,8 @@ public function validate($items, Constraint $constraint) {
$entity_type_id = $entity->getEntityTypeId();
$id_key = $entity->getEntityType()->getKey('id');
$query = \Drupal::entityQuery($entity_type_id);
// @todo Don't check access. http://www.drupal.org/node/3171047
$query->accessCheck(TRUE);
$query = \Drupal::entityQuery($entity_type_id)
->accessCheck(FALSE);
$entity_id = $entity->id();
// Using isset() instead of !empty() as 0 and '0' are valid ID values for
Loading