Skip to content

Commit

Permalink
Merge pull request #390 from esmero/ISSUE-389
Browse files Browse the repository at this point in the history
ISSUE-389: add accessCheck() to FormatStrawberryfieldRestOaiPmhSettingsForm.php
  • Loading branch information
DiegoPino authored Dec 22, 2023
2 parents d0c337c + 138917c commit bb437d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
$config = $this->config('format_strawberryfield_rest_oai_pmh.settings');

$query = \Drupal::entityQuery('metadatadisplay_entity')
->condition('mimetype', 'application/xml');
->accessCheck()->condition('mimetype', 'application/xml');
$results = $query->execute();
$entities = \Drupal::entityTypeManager()->getStorage('metadatadisplay_entity')->loadMultiple($results);
$options = [];
Expand Down

0 comments on commit bb437d3

Please sign in to comment.