summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-05-15 12:07:19 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-15 12:07:19 +0000
commite6fed37d941271b897d37820fd3b571feab280b0 (patch)
treec81c9a7d38d6a8b0c1dc5f8ebb784fce68acb288 /lib
parent45a8c43afe8a17de19a92708b380b29b6ae04ce6 (diff)
downloadgitlab-ce-e6fed37d941271b897d37820fd3b571feab280b0.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib')
-rw-r--r--lib/api/projects.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index 697c2a7e214..d6863e4eba4 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -112,8 +112,6 @@ module API
end
def validate_projects_api_rate_limit_for_unauthenticated_users!
- return unless Feature.enabled?(:rate_limit_for_unauthenticated_projects_api_access)
-
check_rate_limit!(:projects_api_rate_limit_unauthenticated, scope: [ip_address]) if current_user.blank?
end
end