Skip to content

Commit

Permalink
Remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtyomVancyan committed Jun 18, 2023
1 parent ab7d913 commit 0e415cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/django_forbid/skills/forbid_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def __call__(self, request):
client_ip = address.split(",")[0].strip()
verified_ip = request.session.get("VERIFIED_IP", "")

if verified_ip and verified_ip == client_ip:
# Skips if user IP is verified.
if verified_ip == client_ip:
return self.get_response(request)

try:
Expand Down

0 comments on commit 0e415cb

Please sign in to comment.