Fix date comparison

This commit is contained in:
Christian Cueni 2020-04-30 13:17:33 +02:00
parent 0aa1625837
commit e147ca65e0
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