From e89ca7f0118be8adf81df7b96ce1ebee720d93df Mon Sep 17 00:00:00 2001
From: Julian Leucker <leuckerj@gmail.com>
Date: Wed, 22 Jun 2022 18:06:37 +0200
Subject: [PATCH] Fix if statement inside collection_allowed

---
 dj_iconify/util.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dj_iconify/util.py b/dj_iconify/util.py
index 042415a..29d0ff1 100644
--- a/dj_iconify/util.py
+++ b/dj_iconify/util.py
@@ -30,7 +30,7 @@ def collection_allowed(collection: str) -> bool:
     if collection in COLLECTIONS_DISALLOWED:
         return False
 
-    if COLLECTIONS_ALLOWED and collection not in COLLECTIONS_DISALLOWED:
+    if COLLECTIONS_ALLOWED and collection not in COLLECTIONS_ALLOWED:
         return False
 
     return True
-- 
GitLab