Commit 4db1b784 authored by Stan Hu's avatar Stan Hu

Disable archive rate limit by default

Some users depend on having a high number of unauthenticated archive
downloads.  Make this feature flag off by default until we have a chance
to ship a way to toggle this off in the admin panel.
parent facf9e0f
---
title: Disable archive rate limit by default
merge_request: 28264
author:
type: fixed
...@@ -7,7 +7,7 @@ module Gitlab ...@@ -7,7 +7,7 @@ module Gitlab
ARCHIVE_RATE_THROTTLE_KEY = :project_repositories_archive ARCHIVE_RATE_THROTTLE_KEY = :project_repositories_archive
def archive_rate_limit_reached?(user, project) def archive_rate_limit_reached?(user, project)
return false unless Feature.enabled?(:archive_rate_limit, default_enabled: true) return false unless Feature.enabled?(:archive_rate_limit)
key = ARCHIVE_RATE_THROTTLE_KEY key = ARCHIVE_RATE_THROTTLE_KEY
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment