aclEvaluator.hasPermission(authentication, branchId, "BRANCH", "BranchPermission.CREATE_CODE_REVIEW");
List<CreateTopicBtnDto> topicTypes = new ArrayList<>();
if (hasTopicPermission) {
topicTypes.add(new CreateTopicBtnDto("new-topic-btn", "label.addtopic", "label.addtopic.tip",
"/topics/new?branchId=" + branchId, CREATE_TOPIC_BUTTON_ORDER));
}
if (hasReviewPermission) {
topicTypes.add(new CreateTopicBtnDto("new-code-review-btn", "label.addCodeReview", "label.addCodeReview.tip",
"/reviews/new?branchId=" + branchId, CREATE_CODE_REVIEW_BUTTON_ORDER));
}
List<TopicPlugin> topicPlugins = getEnabledTopicPlugins();
for (TopicPlugin topicPlugin : topicPlugins) {