mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-02 11:36:05 +01:00
Merge pull request #702 from marklacroix/no-anon-basic-auth-read
Fix basic auth read when anon access disabled
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user