Skip to content
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

Only get freezedata on existing contests #2981

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
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.

2 participants