Fix date comparison
This commit is contained in:
parent
0aa1625837
commit
e147ca65e0
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue