mirror of
https://github.com/go-gitea/gitea.git
synced 2025-09-14 06:08:15 +00:00
Backport #34024 since there are too many AI crawlers. The new code is covered by tests and it does nothing if users don't set it.
This commit is contained in:
@@ -148,9 +148,9 @@ func TestAPIOrgEditBadVisibility(t *testing.T) {
|
||||
|
||||
func TestAPIOrgDeny(t *testing.T) {
|
||||
onGiteaRun(t, func(*testing.T, *url.URL) {
|
||||
setting.Service.RequireSignInView = true
|
||||
setting.Service.RequireSignInViewStrict = true
|
||||
defer func() {
|
||||
setting.Service.RequireSignInView = false
|
||||
setting.Service.RequireSignInViewStrict = false
|
||||
}()
|
||||
|
||||
orgName := "user1_org"
|
||||
|
Reference in New Issue
Block a user