forked from CGM_Public/pretix_original
New mechanism to transfer cookie consent from the widget (Z#23181715) (#4875)
* Cookie consent: Add separate storage layer for widget * Widget: Move cookie consent out of widget_data * Add consent parameter to forms
This commit is contained in:
@@ -467,6 +467,9 @@ def iframe_entry_view_wrapper(view_func):
|
||||
if 'iframe' in request.GET:
|
||||
request.session['iframe_session'] = True
|
||||
|
||||
if request.GET.get("consent"):
|
||||
request.session["requested_consent_from_widget"] = request.GET["consent"]
|
||||
|
||||
locale = request.GET.get('locale')
|
||||
if locale and locale in [lc for lc, ll in settings.LANGUAGES]:
|
||||
lng = locale
|
||||
|
||||
Reference in New Issue
Block a user