Skip to content

Conversation

@wikumChamith
Copy link
Member

After openmrs/openmrs-core#4601, users must possess the 'Get Global Properties' privilege to access global properties. This grants it as a proxy privilege so users can access essential pages, such as the login page.

Ticket: https://openmrs.atlassian.net/browse/TRUNK-6203

@wikumChamith wikumChamith changed the base branch from TRUNK-6203 to master June 19, 2024 16:19
.getGlobalProperty(ReferenceApplicationConstants.LOCATION_USER_PROPERTY_NAME);
String locationUserPropertyName;
try {
Context.addProxyPrivilege(PrivilegeConstants.GET_GLOBAL_PROPERTIES);
Copy link
Member

@dkayiwa dkayiwa Jun 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean that line 382 below results into a NPE for Context.getAuthenticatedUser().getUserProperty()?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dkayiwa I updated the PR.

@dkayiwa
Copy link
Member

dkayiwa commented May 1, 2025

@wikumChamith do you remember why we abandoned this pull request?

@wikumChamith
Copy link
Member Author

@wikumChamith do you remember why we abandoned this pull request?

@dkayiwa Sorry, I can’t quite remember why this was abandoned—most likely, we just forgot to merge it :)

@dkayiwa
Copy link
Member

dkayiwa commented May 2, 2025

@wikumChamith are you able to reproduce the problem that it was intended to solve?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants