Skip to content

Commit 797024f

Browse files
fix update user not valid bug (#8926)
1 parent 60e68da commit 797024f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

broker/src/main/java/org/apache/rocketmq/broker/processor/AdminBrokerProcessor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -3113,7 +3113,7 @@ private RemotingCommand updateUser(ChannelHandlerContext ctx,
31133113
if (old.getUserType() == UserType.SUPER && isNotSuperUserLogin(request)) {
31143114
throw new AuthenticationException("The super user can only be update by super user");
31153115
}
3116-
return this.brokerController.getAuthenticationMetadataManager().updateUser(old);
3116+
return this.brokerController.getAuthenticationMetadataManager().updateUser(user);
31173117
}).thenAccept(nil -> response.setCode(ResponseCode.SUCCESS))
31183118
.exceptionally(ex -> {
31193119
LOGGER.error("update user {} error", requestHeader.getUsername(), ex);

0 commit comments

Comments
 (0)