diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-23 06:09:07 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-23 06:09:07 +0300 |
commit | d5f3ebc322dec22bf58d366fd91037c69add3fc0 (patch) | |
tree | 40da39f5e1cb3fa7a17b7364767d60ff4dfa73d8 /lib/gitlab/rate_limit_helpers.rb | |
parent | 9c71f76e2b49c070c35cb209fe3729e01a7ce92c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/rate_limit_helpers.rb')
-rw-r--r-- | lib/gitlab/rate_limit_helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/rate_limit_helpers.rb b/lib/gitlab/rate_limit_helpers.rb index a7cab650968..2dcc888892b 100644 --- a/lib/gitlab/rate_limit_helpers.rb +++ b/lib/gitlab/rate_limit_helpers.rb @@ -11,7 +11,7 @@ module Gitlab key = ARCHIVE_RATE_THROTTLE_KEY - if rate_limiter.throttled?(key, scope: [project], threshold: archive_rate_threshold_by_user(user)) + if rate_limiter.throttled?(key, scope: [project, user], threshold: archive_rate_threshold_by_user(user)) rate_limiter.log_request(request, "#{key}_request_limit".to_sym, user) return true |