From 9b286d60519447cfaf8d1cd4cfe83d51ceedb6c1 Mon Sep 17 00:00:00 2001 From: Ian Lindsay Date: Thu, 12 Dec 2024 10:20:41 +0000 Subject: [PATCH] feat: add check for licence with valid operator admin VOL-5955 --- config/backend-routes.config.php | 10 ++++++++ src/Query/Licence/ExistsWithOperatorAdmin.php | 25 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 src/Query/Licence/ExistsWithOperatorAdmin.php diff --git a/config/backend-routes.config.php b/config/backend-routes.config.php index 3333e3a2..aff28ca4 100644 --- a/config/backend-routes.config.php +++ b/config/backend-routes.config.php @@ -879,6 +879,16 @@ 'single' => RouteConfig::getSingleConfig( [ 'GET' => QueryConfig::getConfig(Query\Licence\Licence::class), + 'exists-with-operator-admin' => [ + 'type' => 'Segment', + 'options' => [ + 'route' => 'exists-with-operator-admin[/]' + ], + 'may_terminate' => false, + 'child_routes' => [ + 'GET' => QueryConfig::getConfig(Query\Licence\ExistsWithOperatorAdmin::class), + ] + ], 'decisions' => [ 'type' => 'Segment', 'options' => [ diff --git a/src/Query/Licence/ExistsWithOperatorAdmin.php b/src/Query/Licence/ExistsWithOperatorAdmin.php new file mode 100644 index 00000000..0fcc3a45 --- /dev/null +++ b/src/Query/Licence/ExistsWithOperatorAdmin.php @@ -0,0 +1,25 @@ +licNo; + } +}