mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
[SECURITY] Enforce session validation on oauth authorize endpoint
This commit is contained in:
@@ -112,7 +112,7 @@ class PermissionMiddleware:
|
||||
url = resolve(request.path_info)
|
||||
url_name = url.url_name
|
||||
|
||||
if not request.path.startswith(get_script_prefix() + 'control'):
|
||||
if not request.path.startswith(get_script_prefix() + 'control') and not (url.namespace.startswith("api-") and url_name == "authorize"):
|
||||
# This middleware should only touch the /control subpath
|
||||
return self.get_response(request)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user