From 186ce769a2ae34b99b88144371d4f7f271f7a0c0 Mon Sep 17 00:00:00 2001 From: KOUNOIKE Yuusuke Date: Mon, 18 Sep 2017 14:03:04 +0900 Subject: [PATCH] allow anonymous access to git redirect. fix #1701 --- .../scala/gitbucket/core/controller/PreProcessController.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/gitbucket/core/controller/PreProcessController.scala b/src/main/scala/gitbucket/core/controller/PreProcessController.scala index 1c5d26395..68ce0e9f5 100644 --- a/src/main/scala/gitbucket/core/controller/PreProcessController.scala +++ b/src/main/scala/gitbucket/core/controller/PreProcessController.scala @@ -29,7 +29,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.startsWith("/register") && !context.currentPath.endsWith("/info/refs")) { Unauthorized() } else { pass()