Skip to content

API - Submission get_detail_result access checks updated - #2594

Merged
Didayolo merged 2 commits into
developfrom
submission_detailed_result_api
Oct 21, 2026
Merged

Didayolo merged 2 commits into
developfrom
submission_detailed_result_api

Conversation

@ihsaan-ullah

@ihsaan-ullah ihsaan-ullah commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Description

  • Soft-deleted submissions now return 404
  • Only admins (organizers and superusers) can see the detailed result when the phase hides output
  • Approved participants can see the detailed result of their own submissions and of leaderboard submissions
  • Everyone else can only see the detailed result of a leaderboard submission when the competition is public and show_detailed_results_in_leaderboard is enabled
  • Detailed result tests moved to SubmissionGetDetailResultAPITests and rewritten by access group (admins, approved participants, everyone else)

Checklist

  • Code review by me
  • Hand tested by me
  • I'm proud of my work
  • Code review by reviewer
  • Hand tested by reviewer
  • CircleCi tests are passing
  • Ready to merge

@ihsaan-ullah ihsaan-ullah changed the title Submission get_detail_result access checks updated Submission get_detail_result access checks updated Oct 1, 2026
@ihsaan-ullah ihsaan-ullah changed the title Submission get_detail_result access checks updated API - Submission get_detail_result access checks updated Oct 4, 2026
@ihsaan-ullah
ihsaan-ullah force-pushed the submission_detailed_result_api branch from 3f2d572 to bc16af9 Compare October 20, 2026 06:14
- Soft-deleted submissions now return 404
- Only admins (organizers and superusers) can see the detailed result when the phase hides output
- Approved participants can see the detailed result of their own submissions and of leaderboard submissions
- Everyone else can only see the detailed result of a leaderboard submission when the competition is public and show_detailed_results_in_leaderboard is enabled
- Detailed result tests moved to SubmissionGetDetailResultAPITests and rewritten by access group (admins, approved participants, everyone else)
@Didayolo
Didayolo force-pushed the submission_detailed_result_api branch from bc16af9 to 99ede03 Compare October 21, 2026 04:13
@Didayolo Didayolo self-assigned this Oct 21, 2026
@Didayolo

Copy link
Copy Markdown
Member

Update: I changed the case where "Show detailed results on leaderboard" is disabled and the user is an approved participants.

Before: could see others' detailed results
Now: can't see others' detailed results

@Didayolo
Didayolo merged commit eb73f48 into develop Oct 21, 2026
3 checks passed
@Didayolo
Didayolo deleted the submission_detailed_result_api branch October 21, 2026 04:36
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