mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
PayPal: Add scopes decorator to oauth_return
This commit is contained in:
@@ -41,6 +41,7 @@ def redirect_view(request, *args, **kwargs):
|
|||||||
return r
|
return r
|
||||||
|
|
||||||
|
|
||||||
|
@scopes_disabled()
|
||||||
def oauth_return(request, *args, **kwargs):
|
def oauth_return(request, *args, **kwargs):
|
||||||
if 'payment_paypal_oauth_event' not in request.session:
|
if 'payment_paypal_oauth_event' not in request.session:
|
||||||
messages.error(request, _('An error occurred during connecting with PayPal, please try again.'))
|
messages.error(request, _('An error occurred during connecting with PayPal, please try again.'))
|
||||||
|
|||||||
Reference in New Issue
Block a user