Fix basic auth read when anon access disabled

Basic authentication fails when not updating a public repository
with the "Disable Anonymous Access" option enabled
This commit is contained in:
Mark LaCroix
2015-04-08 11:46:44 -04:00
parent 5c81ce9b68
commit 5f3d6242fd

View File

@@ -51,6 +51,9 @@ class BasicAuthenticationFilter extends Filter with RepositoryService with Accou
requireAuth(response)
}
}
case Some(account) if (!settings.allowAnonymousAccess) => {
chain.doFilter(req, wrappedResponse)
}
case _ => requireAuth(response)
}
}