Skip to content
Snippets Groups Projects
Commit b2af2421 authored by codebymikey's avatar codebymikey Committed by Andrii Podanenko
Browse files

Issue #3348748: Use appropriate accessCheck() parameters.

parent 79b9db99
Branches 8.x-1.x
No related tags found
1 merge request!15fix: Issue [#3348748]: Missing Entity Query Access Check - D10 Compatibility Error
......@@ -526,7 +526,7 @@ class PresetFormBase extends EntityForm {
// Query the entity ID to see if its in use.
$result = $query->condition('id', $element['#field_prefix'] . $entity_id)
->accessCheck()
->accessCheck(FALSE)
->execute();
// We don't need to return the ID, only if it exists or not.
......
......@@ -393,7 +393,7 @@ class VideoEmbedWidget extends FileWidget {
$storage = \Drupal::entityTypeManager()->getStorage('file');
$results = $storage->getQuery()
->condition('uri', $uri)
->accessCheck()
->accessCheck(FALSE)
->execute();
if(!(count($results) > 0)){
$user = \Drupal::currentUser();
......
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