From 4f9c6c23d84795e9932ff13473c5f8ac221fea3b Mon Sep 17 00:00:00 2001 From: Wade Womersley <155439365+wadedvsa@users.noreply.github.com> Date: Mon, 22 Apr 2024 10:40:54 +0100 Subject: [PATCH] fix: Allow special restricted licence surrender (dvsa/olcs-backend#152) --- .../module/Api/src/Domain/CommandHandler/Surrender/Approve.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/api/module/Api/src/Domain/CommandHandler/Surrender/Approve.php b/app/api/module/Api/src/Domain/CommandHandler/Surrender/Approve.php index e35767ba7e..eba730d883 100644 --- a/app/api/module/Api/src/Domain/CommandHandler/Surrender/Approve.php +++ b/app/api/module/Api/src/Domain/CommandHandler/Surrender/Approve.php @@ -122,7 +122,8 @@ private function isValidLicenceType(string $licType): bool $validTypes = [ Licence::LICENCE_TYPE_STANDARD_NATIONAL, Licence::LICENCE_TYPE_STANDARD_INTERNATIONAL, - Licence::LICENCE_TYPE_RESTRICTED + Licence::LICENCE_TYPE_RESTRICTED, + Licence::LICENCE_TYPE_SPECIAL_RESTRICTED, ]; return in_array($licType, $validTypes);