Skip to content

Re-check result permission in submission export#3365

Merged
Chartman123 merged 1 commit into
mainfrom
fix/export-results-permission
May 28, 2026
Merged

Re-check result permission in submission export#3365
Chartman123 merged 1 commit into
mainfrom
fix/export-results-permission

Conversation

@pringelmann
Copy link
Copy Markdown
Collaborator

Summary

  • Add explicit PERMISSION_RESULTS share-level check to exportSubmissionsToCloud
  • getFormIfAllowed(PERMISSION_RESULTS) uses the relaxed canSeeResults() gate which also accepts submitters; the export endpoint needs the same strict recheck getSubmissions and getSubmission already do (added in fix: do not add result permissions to see own submissions #3128)

@pringelmann pringelmann added this to the 5.3 milestone May 28, 2026
@pringelmann pringelmann self-assigned this May 28, 2026
@pringelmann
Copy link
Copy Markdown
Collaborator Author

/backport to stable5.2

@backportbot backportbot Bot added the backport-request Pending backport by the backport-bot label May 28, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
@pringelmann pringelmann force-pushed the fix/export-results-permission branch from e3eb311 to 0f7e893 Compare May 28, 2026 10:03
@Chartman123 Chartman123 merged commit 51fc882 into main May 28, 2026
53 of 54 checks passed
@Chartman123 Chartman123 deleted the fix/export-results-permission branch May 28, 2026 10:59
@nextcloud nextcloud deleted a comment from backportbot Bot May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews backport-request Pending backport by the backport-bot enhancement New feature or request feature: 📊 responses & statistics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants