Weaver currentWeaver = weaverService.getCurrentWeaver();
if(!tagService.validateTag(tagList,currentWeaver)){
return "redirect:/code/sort:age-desc/page:1";
}
model.addAttribute("codes",
<BUG>codeService.getCodes(tagList, sort, pageNum, size));
</BUG>
model.addAttribute("codeCount",
<BUG>codeService.countCodes(tagList, sort));
</BUG>
model.addAttribute("tagNames", tagNames);

Weaver currentWeaver = weaverService.getCurrentWeaver();
if(!tagService.validateTag(tagList,currentWeaver)){
return "redirect:/code/sort:age-desc/page:1";
}
model.addAttribute("codes",
codeService.getCodes(tagList, null, null, sort, pageNum, size));
model.addAttribute("codeCount",
codeService.countCodes(tagList, null, null, sort));
model.addAttribute("tagNames", tagNames);
