From 067669a18cb34b8b5833e26d1a6b4b4135947b78 Mon Sep 17 00:00:00 2001 From: Lilian BENOIT Date: Sun, 18 Jul 2021 11:31:00 +0200 Subject: [PATCH] unprotect plugin-assets (#2825) --- .../scala/gitbucket/core/controller/PreProcessController.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/scala/gitbucket/core/controller/PreProcessController.scala b/src/main/scala/gitbucket/core/controller/PreProcessController.scala index 9e21ecc82..4a368b017 100644 --- a/src/main/scala/gitbucket/core/controller/PreProcessController.scala +++ b/src/main/scala/gitbucket/core/controller/PreProcessController.scala @@ -32,6 +32,7 @@ trait PreProcessControllerBase extends ControllerBase { get(!context.settings.allowAnonymousAccess, context.loginAccount.isEmpty) { if (!context.currentPath.startsWith("/assets") && !context.currentPath.startsWith("/signin") && !context.currentPath.startsWith("/register") && !context.currentPath.endsWith("/info/refs") && + !context.currentPath.startsWith("/plugin-assets") && !PluginRegistry().getAnonymousAccessiblePaths().exists { path => context.currentPath.startsWith(path) }) {