Roman Zabaluev há 2 anos atrás
pai
commit
6fa19c4f10

+ 4 - 1
kafka-ui-api/src/main/java/com/provectus/kafka/ui/model/rbac/Permission.java

@@ -74,7 +74,10 @@ public class Permission {
   }
 
   private List<String> getAllActionValues() {
-    if (resource == null) return Collections.emptyList();
+    if (resource == null) {
+      return Collections.emptyList();
+    }
+
     return switch (this.resource) {
       case APPLICATIONCONFIG -> Arrays.stream(ApplicationConfigAction.values()).map(Enum::toString).toList();
       case CLUSTERCONFIG -> Arrays.stream(ClusterConfigAction.values()).map(Enum::toString).toList();