PayPal: Add scopes decorator to oauth_return

This commit is contained in:
Raphael Michel
2019-06-20 19:29:23 +02:00
parent e29c8a1708
commit 93cca34eab

View File

@@ -41,6 +41,7 @@ def redirect_view(request, *args, **kwargs):
return r
@scopes_disabled()
def oauth_return(request, *args, **kwargs):
if 'payment_paypal_oauth_event' not in request.session:
messages.error(request, _('An error occurred during connecting with PayPal, please try again.'))