Skip to content

Commit

Permalink
Add ::accessCheck() dealio.
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-vessey committed Sep 14, 2023
1 parent ee8686e commit cd3e0ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Form/Ingest/FileUpload.php
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,10 @@ public function save(array $form, FormStateInterface $form_state) {
*/
public function exist($id) {
$entity = $this->entityTypeManager->getStorage('isi_request')->getQuery()
// XXX: Strictly, this _could_ allow the leak of information regarding the
// existence of other requests; however, unsure if we are particularly
// concerned.
->accessCheck(FALSE)
->condition('id', $id)
->execute();
return (bool) $entity;
Expand Down

0 comments on commit cd3e0ce

Please sign in to comment.