X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/73b6a1639ba8f9f5fc7615c136364fdba73e5bb2..e81500796eb5163e07ac6b02109666747fb0c206:/src/catalogue/utils.py?ds=sidebyside diff --git a/src/catalogue/utils.py b/src/catalogue/utils.py index 2145312ad..9878a70f2 100644 --- a/src/catalogue/utils.py +++ b/src/catalogue/utils.py @@ -20,6 +20,7 @@ from django.core.files.uploadedfile import UploadedFile from django.http import HttpResponse from django.utils.encoding import force_unicode +from paypal.rest import user_is_subscribed from reporting.utils import read_chunks # Use the system (hardware-based) random number generator if it exists. @@ -357,4 +358,4 @@ def gallery_url(slug): def is_subscribed(user): - return user.is_authenticated() # TEMPORARY + return user_is_subscribed(user)