Merge pull request #1712 from kounoike/pr-fix-1701

Allow anonymous access to github style git url redirect. fix #1701
This commit is contained in:
Naoki Takezoe
2017-09-19 09:02:28 +09:00
committed by GitHub

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