Skip to content

Commit

Permalink
UIFR-225: Authentication UI Login Page doesn't work after upgrade to …
Browse files Browse the repository at this point in the history
…OpenMRS 2.6.11
  • Loading branch information
mogoodrich committed Dec 17, 2024
1 parent 1f88e18 commit 6c8a1d3
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import org.openmrs.api.AdministrationService;
import org.openmrs.api.context.Context;
import org.openmrs.util.OpenmrsUtil;
import org.openmrs.util.PrivilegeConstants;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

Expand Down Expand Up @@ -112,8 +113,14 @@ public <T extends Extension> Map<String, T> getExtensionsByClass(Class<T> clazz)
* the point has not been configured, this returns null.
*/
public List<String> getExtensionPointConfiguration(String pointId) {
String gp = Context.getAdministrationService().getGlobalProperty("ui2.extensionConfig." + pointId);
return gp == null ? null : Arrays.asList(gp.split(","));
try {
Context.addProxyPrivilege(PrivilegeConstants.GET_GLOBAL_PROPERTIES);
String gp = Context.getAdministrationService().getGlobalProperty("ui2.extensionConfig." + pointId);
return gp == null ? null : Arrays.asList(gp.split(","));
}
finally {
Context.removeProxyPrivilege(PrivilegeConstants.GET_GLOBAL_PROPERTIES);
}
}

/**
Expand Down

0 comments on commit 6c8a1d3

Please sign in to comment.