From 86038670866e0a753f5a3e59d069c8dfbd88f7a6 Mon Sep 17 00:00:00 2001
From: Jordan Dukart <jordan@discoverygarden.ca>
Date: Thu, 21 Jul 2022 12:09:03 -0300
Subject: [PATCH] Merge pull request from GHSA-m58q-qq5h-mgqq

---
 islandora.routing.yml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/islandora.routing.yml b/islandora.routing.yml
index 6fea02e9..5387e9a4 100644
--- a/islandora.routing.yml
+++ b/islandora.routing.yml
@@ -44,8 +44,7 @@ islandora.upload_children:
   options:
     _admin_route: 'TRUE'
   requirements:
-    _access: 'TRUE'
-    #_permssion: 'create node,create media'
+    _custom_access: '\Drupal\islandora\Form\AddChildrenForm::access'
 
 islandora.add_media_to_node_page:
   path: '/node/{node}/media/add'