From 6d2e0ab19794462c72a351dc6461c067e2da339b Mon Sep 17 00:00:00 2001 From: vsvishalsharma Date: Mon, 13 Jan 2025 17:27:14 +0530 Subject: [PATCH 1/2] Makes user manual accessible to all loged in users --- src/main/java/org/openelisglobal/security/SecurityConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openelisglobal/security/SecurityConfig.java b/src/main/java/org/openelisglobal/security/SecurityConfig.java index 930e185ac5..5f2042adde 100644 --- a/src/main/java/org/openelisglobal/security/SecurityConfig.java +++ b/src/main/java/org/openelisglobal/security/SecurityConfig.java @@ -88,7 +88,7 @@ public class SecurityConfig { // TODO should we move these to the properties files? // pages that have special security constraints public static final String[] OPEN_PAGES = { "/pluginServlet/**", "/ChangePasswordLogin", - "/UpdateLoginChangePassword", "/health/**", "/rest/open-configuration-properties" }; + "/UpdateLoginChangePassword", "/health/**", "/rest/open-configuration-properties", "/docs/UserManual/**" }; public static final String[] LOGIN_PAGES = { "/LoginPage", "/ValidateLogin", "/session" }; public static final String[] AUTH_OPEN_PAGES = { "/Home", "/Dashboard", "/Logout", "/MasterListsPage", From 4facb58134dad152b696c87661721bb3103a1248 Mon Sep 17 00:00:00 2001 From: Mutesasira Moses Date: Mon, 13 Jan 2025 16:29:52 +0300 Subject: [PATCH 2/2] remove wildcards to only match exactly '/docs/UserManual' --- src/main/java/org/openelisglobal/security/SecurityConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openelisglobal/security/SecurityConfig.java b/src/main/java/org/openelisglobal/security/SecurityConfig.java index 5f2042adde..76c32d15db 100644 --- a/src/main/java/org/openelisglobal/security/SecurityConfig.java +++ b/src/main/java/org/openelisglobal/security/SecurityConfig.java @@ -88,7 +88,7 @@ public class SecurityConfig { // TODO should we move these to the properties files? // pages that have special security constraints public static final String[] OPEN_PAGES = { "/pluginServlet/**", "/ChangePasswordLogin", - "/UpdateLoginChangePassword", "/health/**", "/rest/open-configuration-properties", "/docs/UserManual/**" }; + "/UpdateLoginChangePassword", "/health/**", "/rest/open-configuration-properties", "/docs/UserManual" }; public static final String[] LOGIN_PAGES = { "/LoginPage", "/ValidateLogin", "/session" }; public static final String[] AUTH_OPEN_PAGES = { "/Home", "/Dashboard", "/Logout", "/MasterListsPage",