X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/967eed676fc83d15b26149047f353ac61faa8217..dce4cbe605cb926b5583f7ddd325704b527e7e5c:/src/paypal/views.py diff --git a/src/paypal/views.py b/src/paypal/views.py index c541ba80b..01d3a5aab 100644 --- a/src/paypal/views.py +++ b/src/paypal/views.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # @@ -17,7 +16,7 @@ from paypal.models import BillingAgreement, BillingPlan def paypal_form(request, app=False): if request.POST: - if not request.user.is_authenticated(): + if not request.user.is_authenticated: return HttpResponseForbidden() form = PaypalSubscriptionForm(data=request.POST) if form.is_valid():