Created
January 20, 2025 08:39
-
-
Save euanmillar/e8a8fb0c5e66c37a08b57c8ad4b8937f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/packages/config/src/config/routes.ts b/packages/config/src/config/routes.ts | |
index 0b309ee348..50adc60859 100644 | |
--- a/packages/config/src/config/routes.ts | |
+++ b/packages/config/src/config/routes.ts | |
@@ -45,8 +45,7 @@ export const enum RouteScope { | |
PERFORMANCE = 'performance', | |
SYSADMIN = 'sysadmin', | |
VALIDATE = 'validate', | |
- NATLSYSADMIN = 'natlsysadmin', | |
- RECORDSEARCH = 'recordsearch' | |
+ NATLSYSADMIN = 'natlsysadmin' | |
} | |
export default function getRoutes(): ServerRoute[] { | |
@@ -81,7 +80,6 @@ export default function getRoutes(): ServerRoute[] { | |
RouteScope.PERFORMANCE, | |
RouteScope.SYSADMIN, | |
RouteScope.VALIDATE, | |
- RouteScope.RECORDSEARCH, | |
// @TODO: Refer to an enum / constant | |
'record.confirm-registration' | |
] | |
@@ -153,8 +151,7 @@ export default function getRoutes(): ServerRoute[] { | |
RouteScope.CERTIFY, | |
RouteScope.PERFORMANCE, | |
RouteScope.SYSADMIN, | |
- RouteScope.VALIDATE, | |
- RouteScope.RECORDSEARCH | |
+ RouteScope.VALIDATE | |
] | |
} | |
} | |
diff --git a/packages/config/src/handlers/application/applicationConfigHandler.ts b/packages/config/src/handlers/application/applicationConfigHandler.ts | |
index 87debece20..6c3f0991a3 100644 | |
--- a/packages/config/src/handlers/application/applicationConfigHandler.ts | |
+++ b/packages/config/src/handlers/application/applicationConfigHandler.ts | |
@@ -68,8 +68,7 @@ async function getCertificatesConfig( | |
scope && | |
(scope.includes(RouteScope.CERTIFY) || | |
scope.includes(RouteScope.VALIDATE) || | |
- scope.includes(RouteScope.NATLSYSADMIN) || | |
- scope.includes(RouteScope.RECORDSEARCH)) | |
+ scope.includes(RouteScope.NATLSYSADMIN)) | |
) { | |
const url = new URL(`/certificates`, env.COUNTRY_CONFIG_URL).toString() | |
diff --git a/packages/config/src/handlers/certificate/certificateHandler.ts b/packages/config/src/handlers/certificate/certificateHandler.ts | |
index 2b4165061a..44a0d84079 100644 | |
--- a/packages/config/src/handlers/certificate/certificateHandler.ts | |
+++ b/packages/config/src/handlers/certificate/certificateHandler.ts | |
@@ -57,8 +57,7 @@ export async function getActiveCertificatesHandler( | |
scope && | |
(scope.includes(RouteScope.CERTIFY) || | |
scope.includes(RouteScope.VALIDATE) || | |
- scope.includes(RouteScope.NATLSYSADMIN) || | |
- scope.includes(RouteScope.RECORDSEARCH)) | |
+ scope.includes(RouteScope.NATLSYSADMIN)) | |
) { | |
const activeCertificates = await Certificate.find({ | |
status: Status.ACTIVE, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment