Filter inactive/unapproved users out of SecureAPI requests. Fixes #552

This commit is contained in:
2023-06-28 12:55:42 +01:00
parent 9f4cd41d23
commit c9ba228bd2
2 changed files with 4 additions and 1 deletions

View File

@@ -160,7 +160,7 @@ class ModelComparison:
# Build some dicts of what we have
item_dict = {} # build a list of items, key is the item_pk
if len(new_item_versions) is 0:
if len(new_item_versions) == 0:
return None
for version in old_item_versions: # put all the old versions in a list
if version is None or version.object is None: