Fix middleware
This commit is contained in:
parent
fe82410947
commit
249a0f7ca1
|
|
@ -44,7 +44,7 @@ def is_private_api_call_allowed(user, body):
|
||||||
license_expiry = user.license_expiry_date
|
license_expiry = user.license_expiry_date
|
||||||
|
|
||||||
# all other resources are denied if the license is not valid
|
# 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 False
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue