From 5c525c94e6f0d2cd1a65ce7e8a1fa104a55e94b9 Mon Sep 17 00:00:00 2001 From: John Rassa Date: Fri, 5 Apr 2024 13:03:37 -0400 Subject: [PATCH] fix: Use proper config path for orgLevelConfig --- src/app/core/user/user-auth.middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/core/user/user-auth.middleware.ts b/src/app/core/user/user-auth.middleware.ts index c424099..177793a 100644 --- a/src/app/core/user/user-auth.middleware.ts +++ b/src/app/core/user/user-auth.middleware.ts @@ -156,7 +156,7 @@ export const requiresExternalRoles = (req) => { * Checks whether user has defined organization level values if values are required */ export const requiresOrganizationLevels = (req) => { - const required = config.get('orgLevelConfig.required'); + const required = config.get('auth.orgLevelConfig.required'); if (!required) { // Organization levels are not required, proceed