Skip to content

Only get freezedata on existing contests #2981

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vmcj
Copy link
Member

@vmcj vmcj commented Apr 4, 2025

This is a annoying case, we only check if the contests exists after we know if the user has access. This prevents us from disclosing data but does require this null check.

I did not check if it fixes the issue, but given the small change I expect we get away with this on visual inspection.

Should fix https://domjudge.sentry.io/issues/6155964196/?alert_rule_id=11022917&alert_type=issue&notification_uuid=d08175bd-ce4e-4e66-b1e3-49c72dfcef9e&project=6376669&referrer=slack

This is a annoying case, we only check if the contests exists after we
know if the user has access. This prevents us from disclosing data but
does require this null check.
@vmcj vmcj requested a review from nickygerritsen April 4, 2025 17:07
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants