Skip to content

Commit

Permalink
fix(auth): endpoint topic/{topicName}/groups incorrect acl resource t…
Browse files Browse the repository at this point in the history
…ype (#1796)

closes #1789
  • Loading branch information
doxsch authored May 27, 2024
1 parent f75cb86 commit 21d360f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/akhq/controllers/TopicController.java
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ public List<Partition> partitions(String cluster, String topicName) throws Execu
return this.topicRepository.findByName(cluster, topicName).getPartitions();
}

@AKHQSecured(resource = Role.Resource.TOPIC, action = Role.Action.READ)
@AKHQSecured(resource = Role.Resource.CONSUMER_GROUP, action = Role.Action.READ)
@Get("api/{cluster}/topic/{topicName}/groups")
@Operation(tags = {"topic"}, summary = "List all consumer groups from a topic")
public List<ConsumerGroup> groups(String cluster, String topicName) throws ExecutionException, InterruptedException {
Expand Down

0 comments on commit 21d360f

Please sign in to comment.