Skip to content

Commit

Permalink
TRUNK-6203: Global properties access should be privileged
Browse files Browse the repository at this point in the history
  • Loading branch information
dkayiwa committed Jun 26, 2024
1 parent a83362b commit 7be9616
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions omod/src/main/webapp/template/footerFull.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
%>
Expand Down

0 comments on commit 7be9616

Please sign in to comment.