Skip to content

Submission get_detail API: Restrict to submission owner or admin - #2525

Merged
Didayolo merged 1 commit into
developfrom
submission_detail_api
Sep 10, 2026
Merged

Didayolo merged 1 commit into
developfrom
submission_detail_api

Conversation

@ihsaan-ullah

@ihsaan-ullah ihsaan-ullah commented Aug 29, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Anonymous and non-owner requests could previously view submission details when hide_output was off. Now only the owner or an admin can access them. Adds tests covering the fix.

Issues this PR resolves

  • reported by Chris Haris and Wenhao Deng

A checklist for hand testing

  • Call the api with an anonymous user and check that you do not get access to the submission.

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

@wlln
wlln requested a review from IdirLISN September 1, 2026 12:20
@wlln wlln added the P1 High priority label Sep 1, 2026
@IdirLISN IdirLISN removed their assignment Sep 8, 2026
@Didayolo

Didayolo commented Sep 8, 2026

Copy link
Copy Markdown
Member

To be rebased and merged

@Didayolo Didayolo self-assigned this Sep 10, 2026
Anonymous and non-owner requests could previously view submission
details when hide_output was off. Now only the owner or an admin
can access them. Adds tests covering the fix.
@Didayolo
Didayolo force-pushed the submission_detail_api branch from 3452119 to f4ad7a4 Compare September 10, 2026 02:01
@Didayolo
Didayolo merged commit 31638df into develop Sep 10, 2026
2 checks passed
@Didayolo
Didayolo deleted the submission_detail_api branch September 10, 2026 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P1 High priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants