Add perm to versions log

This commit is contained in:
KennyTV 2020-08-22 09:38:38 +02:00
parent fd2691a48b
commit 25cf62e383
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -88,6 +88,8 @@ public class VersionsController extends HangarController {
return null; // TODO implement downloadJarById request controller
}
@GlobalPermission(NamedPermission.VIEW_LOGS)
@Secured("ROLE_USER")
@RequestMapping("/{author}/{slug}/versionLog")
public ModelAndView showLog(@PathVariable String author, @PathVariable String slug, @RequestParam String versionString) {
ModelAndView mv = new ModelAndView("projects/versions/log");