diff --git a/config/settings/acl.global.php b/config/settings/acl.global.php
index f30e73db2a0834b2de935c8d2b751d18a72e2a57..f43f401661caf0d529e6d3f74eafe2b13fef2ac4 100644
--- a/config/settings/acl.global.php
+++ b/config/settings/acl.global.php
@@ -42,7 +42,6 @@ return [
['/in_numbers', ['guest', 'user'], ['get']],
['/export/csv/edulabs_{type}.csv', ['guest', 'user'], ['get']],
['/open-data', ['guest', 'user'], ['get']],
- ['/receive-equip/undo-submit/{applicationform_id}', ['school'], ['get']], // only for tests. Must be removed
],
],
],
diff --git a/module/receive_equip/bootstrap.php b/module/receive_equip/bootstrap.php
index 8f21ef43992cf09a393bf9c27e6c7a41d19ebdfe..464c2e00e7108bf8c5901c2ed4087455b4f6a24c 100644
--- a/module/receive_equip/bootstrap.php
+++ b/module/receive_equip/bootstrap.php
@@ -122,18 +122,5 @@ return function (Slim\App $app) {
return $response;
})->setName('receive_equip.receive_doc');
-
-/******************* only for tests ***************************/
- $app->get('/receive-equip/undo-submit/{applicationform_id}', function (Request $req, Response $res) use ($container) {
- $route = $req->getAttribute('route');
- $applicationform_id = $route->getArgument('applicationform_id');
-
- $sql = 'update `applicationform` set `approved`=1, `received_ts`=null where `id`=' . $applicationform_id;
- R::exec($sql);
-
- return $res->withRedirect("/receive-equip");
-
- })->setName('receive_equip.undosubmit');
-/****************** /only for tests ***************************/
});
};