diff options
author | mayaeh <mayaeh@marimo-net.org> | 2019-05-28 12:42:04 +0900 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-11-19 15:37:37 -0600 |
commit | 5f6d21b64416dc7838a75a15ab046a668cc92833 (patch) | |
tree | ba9f8b26330b9caa50ba3c125f45d1cec082a50e /config | |
parent | 37736ec0fbb8a30f33c5f6a8c860e6d66abc1dfd (diff) |
Fix undefined method error. (#10867)
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/rack_attack.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/rack_attack.rb b/config/initializers/rack_attack.rb index e07341b75..29c136d3d 100644 --- a/config/initializers/rack_attack.rb +++ b/config/initializers/rack_attack.rb @@ -58,7 +58,7 @@ class Rack::Attack end throttle('throttle_unauthenticated_api', limit: 300, period: 5.minutes) do |req| - req.remote_ip if req.api_request? && !req.authenticated? + req.remote_ip if req.api_request? && req.unauthenticated? end throttle('throttle_api_media', limit: 300, period: 5.minutes) do |req| |