Skip to content

Fix file upload when modifying registration in a protected event #5719

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 31, 2023

Conversation

ThiefMaster
Copy link
Member

When the event is protected and the user just accesses it via its registration token (e.g. because the user was originally logged in or used an access key to access the event), the file upload endpoint still enforced the access check, causing file uploads to fail.

Now we pass the registration token there as well and thus skip the access check when the endpoint is accessed in the context of an existing registration.

When the event is protected and the user just accesses it via its
registration token (e.g. because the user was originally logged in or
used an access key to access the event), the file upload endpoint still
enforced the access check, causing file uploads to fail.

Now we pass the registration token there as well and thus skip the
access check when the endpoint is accessed in the context of an existing
registration.
@ThiefMaster ThiefMaster added this to the v3.2 milestone Mar 31, 2023
@ThiefMaster ThiefMaster changed the title Fix reg file upload in protected events Fix file upload when modifying registration in a protected event Mar 31, 2023
@ThiefMaster ThiefMaster merged commit 32a6137 into indico:master Mar 31, 2023
@ThiefMaster ThiefMaster deleted the fix-reg-upload-prot branch March 31, 2023 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant