From a691946e7321ce7d2db55642b99eecbc61fceb82 Mon Sep 17 00:00:00 2001 From: "John N. Milner" Date: Mon, 23 Mar 2020 20:57:44 -0400 Subject: [PATCH] Fix `TypeError: 'bool' object is not callable` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …when attempting to download an export --- kpi/utils/private_storage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kpi/utils/private_storage.py b/kpi/utils/private_storage.py index 649a091c3e..4f73a95c45 100644 --- a/kpi/utils/private_storage.py +++ b/kpi/utils/private_storage.py @@ -21,7 +21,7 @@ def superuser_or_username_matches_prefix(private_file): user = private_file.request.user - if not user.is_authenticated(): + if not user.is_authenticated: # Try all the DRF authentication methods before giving up request = DRFRequest( private_file.request, @@ -30,7 +30,7 @@ def superuser_or_username_matches_prefix(private_file): ] ) user = request.user - if not user.is_authenticated(): + if not user.is_authenticated: return False if user.is_superuser: