fix update user not valid bug (#8926)

This commit is contained in:
dingshuangxi888
2024-11-15 10:35:37 +08:00
committed by GitHub
parent 60e68dadd9
commit 797024f3f8
@@ -3113,7 +3113,7 @@ public class AdminBrokerProcessor implements NettyRequestProcessor {
if (old.getUserType() == UserType.SUPER && isNotSuperUserLogin(request)) {
throw new AuthenticationException("The super user can only be update by super user");
}
return this.brokerController.getAuthenticationMetadataManager().updateUser(old);
return this.brokerController.getAuthenticationMetadataManager().updateUser(user);
}).thenAccept(nil -> response.setCode(ResponseCode.SUCCESS))
.exceptionally(ex -> {
LOGGER.error("update user {} error", requestHeader.getUsername(), ex);