This is an automated email from the ASF dual-hosted git repository.

jinrongtong pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git


The following commit(s) were added to refs/heads/develop by this push:
     new 3884f59594 [ISSUE #7149] When creating and updating Topic, there will 
be problems with permission settings (#7151)
3884f59594 is described below

commit 3884f595949462044c5cb3c236199bc1d7ad2341
Author: 石臻臻(Steven shi) <[email protected]>
AuthorDate: Wed Aug 23 11:10:30 2023 +0800

    [ISSUE #7149] When creating and updating Topic, there will be problems with 
permission settings (#7151)
    
    * [ISSUE #7149] fix bug : When creating and updating Topic, there will be 
problems with permission settings
    
    * [ISSUE #7149] fix bug : When creating and updating Topic, there will be 
problems with permission settings
    
    * [issue#7249]
    
    ---------
    
    Co-authored-by: 十真 <[email protected]>
---
 broker/src/main/java/org/apache/rocketmq/broker/BrokerController.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/broker/src/main/java/org/apache/rocketmq/broker/BrokerController.java 
b/broker/src/main/java/org/apache/rocketmq/broker/BrokerController.java
index 13f9d002b5..e8f9437029 100644
--- a/broker/src/main/java/org/apache/rocketmq/broker/BrokerController.java
+++ b/broker/src/main/java/org/apache/rocketmq/broker/BrokerController.java
@@ -1733,7 +1733,8 @@ public class BrokerController {
                         new TopicConfig(topicConfig.getTopicName(),
                             topicConfig.getReadQueueNums(),
                             topicConfig.getWriteQueueNums(),
-                            this.brokerConfig.getBrokerPermission(), 
topicConfig.getTopicSysFlag());
+                                topicConfig.getPerm()
+                                        & 
this.brokerConfig.getBrokerPermission(), topicConfig.getTopicSysFlag());
                 } else {
                     registerTopicConfig = new TopicConfig(topicConfig);
                 }

Reply via email to