Skip to content

Commit

Permalink
TRUNK-6259: fix concurrency issue when checking privileges (openmrs#4772
Browse files Browse the repository at this point in the history
)
  • Loading branch information
chibongho authored Oct 7, 2024
1 parent f4f949c commit 8d46a47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/src/main/java/org/openmrs/api/context/UserContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
Expand Down Expand Up @@ -58,7 +59,7 @@ public class UserContext implements Serializable {
/**
* User's permission proxies
*/
private List<String> proxies = new ArrayList<>();
private List<String> proxies = Collections.synchronizedList(new ArrayList<>());

/**
* User's locale
Expand Down

0 comments on commit 8d46a47

Please sign in to comment.