From 25cf62e383559055077dcace66c7820179846be2 Mon Sep 17 00:00:00 2001 From: KennyTV Date: Sat, 22 Aug 2020 09:38:38 +0200 Subject: [PATCH] Add perm to versions log --- .../java/io/papermc/hangar/controller/VersionsController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/io/papermc/hangar/controller/VersionsController.java b/src/main/java/io/papermc/hangar/controller/VersionsController.java index 123c8e666..695b01727 100644 --- a/src/main/java/io/papermc/hangar/controller/VersionsController.java +++ b/src/main/java/io/papermc/hangar/controller/VersionsController.java @@ -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");