Skip to content

Commit

Permalink
add privileged block in logout
Browse files Browse the repository at this point in the history
  • Loading branch information
Sameer Pandit committed Aug 23, 2017
1 parent cf5d56c commit b9de755
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,12 @@ private void doLogout(HttpRequest request, boolean extensionEnabled) {
@Override
public void logout() {
setSecurityContext(null);
resetPolicyContext();
AccessController.doPrivileged(new PrivilegedAction<Void>() {
public Void run() {
resetPolicyContext();
return null;
}
});
}

public Principal authenticate(HttpServletRequest hreq) {
Expand Down

0 comments on commit b9de755

Please sign in to comment.