From e147ca65e0f25606adb62e16de66e0e127667644 Mon Sep 17 00:00:00 2001 From: Christian Cueni Date: Thu, 30 Apr 2020 13:17:33 +0200 Subject: [PATCH] Fix date comparison --- server/core/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core/utils.py b/server/core/utils.py index 28bb4185..2dc1b9db 100644 --- a/server/core/utils.py +++ b/server/core/utils.py @@ -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