mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 07:52:04 +02:00
Fix throttling condition
This commit is contained in:
parent
f17ef17d16
commit
16d4e4b4e6
2 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,7 @@ module Shunter
|
|||
around_action :throttle, only: actions
|
||||
|
||||
def throttle
|
||||
unless throttled_user.present? && Shunter.feature_enabled?
|
||||
if throttled_user.blank? || !Shunter.feature_enabled?
|
||||
yield if block_given?
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue