From 249a0f7ca1967ae067761b73896f38ad01a6451e Mon Sep 17 00:00:00 2001 From: Christian Cueni Date: Tue, 12 May 2020 15:39:20 +0200 Subject: [PATCH] Fix middleware --- 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