mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-04 20:45:58 +01:00
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:
@@ -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