From 3e52f1e8a13b6e8a904b9dd1fc2b784672f95cbf Mon Sep 17 00:00:00 2001 From: octavioamu Date: Tue, 14 Sep 2021 20:06:58 -0300 Subject: [PATCH] fix icontain blocking random users and orgs --- app/dashboard/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dashboard/utils.py b/app/dashboard/utils.py index ee435439ffa..f60b43bce67 100644 --- a/app/dashboard/utils.py +++ b/app/dashboard/utils.py @@ -981,7 +981,7 @@ def get_tx_status_and_details(txid, network, created_on): def is_blocked(handle): # check admin block list - is_on_blocked_list = BlockedUser.objects.filter(handle__icontains=handle, active=True).exists() + is_on_blocked_list = BlockedUser.objects.filter(handle=handle.lower(), active=True).exists() if is_on_blocked_list: return True