Skip to content

Commit

Permalink
Fix TypeError: 'bool' object is not callable
Browse files Browse the repository at this point in the history
…when attempting to download an export
  • Loading branch information
jnm committed Mar 24, 2020
1 parent 9ef0abc commit a691946
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kpi/utils/private_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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:
Expand Down

0 comments on commit a691946

Please sign in to comment.