X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/967eed676fc83d15b26149047f353ac61faa8217..6d42bc478e3d1bd90eb294464748c21e4de0fc63:/src/paypal/views.py?ds=inline 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():