Commit 704027af by Bach Dániel

firewall: fix TypeError in add_blacklist_item()

parent 9a6884bf
......@@ -87,7 +87,8 @@ def add_blacklist_item(request):
now =
can_update = ((obj.whitelisted and now > obj.expires_at) or
can_update = (
(obj.whitelisted and obj.expires_at and now > obj.expires_at) or
not obj.whitelisted)
is_new = created or (obj.expires_at and now > obj.expires_at)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment