Skip to content

fix: CSV endpoints incorrectly responding with 403#421

Merged
voneiden merged 1 commit into
mainfrom
fix-csv-api
Aug 20, 2025
Merged

fix: CSV endpoints incorrectly responding with 403#421
voneiden merged 1 commit into
mainfrom
fix-csv-api

Conversation

@voneiden

Copy link
Copy Markdown
Contributor

The logic for authenticating admin (staff) users was refactored previously. Along this users were migrated from using Django's is_staff to using a custom is_event_staff.

The ExportReportCsvView was not updated to reflect this change, which resulted in admin users receiving 403 errors when attempting to download CSV files.

refs: PT-1812, PT-1942

@voneiden voneiden requested a review from a team as a code owner August 19, 2025 14:26
@terovirtanen

Copy link
Copy Markdown
Contributor

KULTUS-API branch is deployed to platta: https://kultus-pr421.api.dev.hel.ninja 🚀🚀🚀

The logic for authenticating admin (staff) users was
refactored previously. Along this users were migrated
from using Django's is_staff to using a custom is_event_staff.

The ExportReportCsvView was not updated to reflect this
change, which resulted in admin users receiving 403 errors
when attempting to download CSV files.

refs: PT-1812, PT-1942
@sonarqubecloud

Copy link
Copy Markdown

@terovirtanen

Copy link
Copy Markdown
Contributor

KULTUS-API branch is deployed to platta: https://kultus-pr421.api.dev.hel.ninja 🚀🚀🚀

@mhieta mhieta left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@voneiden voneiden merged commit 30d5348 into main Aug 20, 2025
22 checks passed
@voneiden voneiden deleted the fix-csv-api branch August 20, 2025 06:44
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.

3 participants