Fix middleware

This commit is contained in:
Christian Cueni 2020-05-12 15:39:20 +02:00
parent fe82410947
commit 249a0f7ca1
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ def is_private_api_call_allowed(user, body):
license_expiry = user.license_expiry_date
# all other resources are denied if the license is not valid
if license_expiry is None or license_expiry < timezone.now():
if license_expiry is None or license_expiry < timezone.now().date():
return False
return True