Skip to content

Commit

Permalink
Remove should not happen
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Oct 2, 2023
1 parent 37a251b commit 3b2925b
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,6 @@ public RestHandler wrap(RestHandler original, AdminDNs adminDNs) {
return (request, channel, client) -> {
org.apache.logging.log4j.ThreadContext.clearAll();
User user = threadContext.getTransient(ConfigConstants.OPENDISTRO_SECURITY_USER);
if (user == null) {
// Should not happen
return;
}
boolean isSuperAdminUser = userIsSuperAdmin(user, adminDNs);
if (isSuperAdminUser
|| (whitelistingSettings.checkRequestIsAllowed(request, channel)
Expand Down

0 comments on commit 3b2925b

Please sign in to comment.