summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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