From 7be961644ccac0646ddbfaf0a84decf08717c53e Mon Sep 17 00:00:00 2001 From: dkayiwa Date: Wed, 26 Jun 2024 23:37:05 +0300 Subject: [PATCH] TRUNK-6203: Global properties access should be privileged --- omod/src/main/webapp/template/footerFull.jsp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/omod/src/main/webapp/template/footerFull.jsp b/omod/src/main/webapp/template/footerFull.jsp index 2af2df6d..96133450 100644 --- a/omod/src/main/webapp/template/footerFull.jsp +++ b/omod/src/main/webapp/template/footerFull.jsp @@ -26,7 +26,11 @@ s = ""; pageContext.setAttribute("qs", qs.substring(0, i) + s); + + org.openmrs.api.context.Context.addProxyPrivilege(org.openmrs.util.PrivilegeConstants.GET_GLOBAL_PROPERTIES); pageContext.setAttribute("locales", org.openmrs.api.context.Context.getAdministrationService().getPresentationLocales()); + org.openmrs.api.context.Context.addProxyPrivilege(org.openmrs.util.PrivilegeConstants.GET_GLOBAL_PROPERTIES); + pageContext.setAttribute("openmrsPlatformVersion", org.openmrs.util.OpenmrsConstants.OPENMRS_VERSION); pageContext.setAttribute("locale", org.openmrs.api.context.Context.getLocale()); %>