allow anonymous access to git redirect. fix #1701

This commit is contained in:
KOUNOIKE Yuusuke
2017-09-18 14:03:04 +09:00
parent 848c698491
commit 186ce769a2

View File

@@ -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()