Skip to content

Commit

Permalink
remove uneccesarry checking for header
Browse files Browse the repository at this point in the history
  • Loading branch information
olegphenomenon committed Jan 8, 2022
1 parent 7f0aae2 commit 405475d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/controllers/repp/v1/base_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,6 @@ def check_ip_restriction
def webclient_request?
return if Rails.env.test?

# header = request.headers['AccreditationToken']
# return if header == ENV['accreditation_secret']

ENV['webclient_ips'].split(',').map(&:strip).include?(request.ip)
end

Expand Down

0 comments on commit 405475d

Please sign in to comment.