confluent based image
[dmaap/kafka11aaf.git] / src / main / java / org / onap / dmaap / kafkaAuthorize / KafkaCustomAuthorizer.java
index 7d38cd2..950cd9f 100644 (file)
@@ -161,7 +161,7 @@ public class KafkaCustomAuthorizer implements Authorizer {
                        return true;
                }
 
-               if (null != topicName && !topicName.startsWith("org.onap")) {
+               if ((!Cadi3AAFProvider.isCadiEnabled())||(null != topicName && !topicName.startsWith("org.onap"))) {
                        return true;
                }