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

fix: Apply auth to public upload, not private #2427

Merged
merged 2 commits into from
Nov 15, 2023
Merged

Conversation

DafyddLlyr
Copy link
Contributor

@DafyddLlyr DafyddLlyr commented Nov 15, 2023

What's the problem?

Reported here on ODP Slack - https://opendigitalplanning.slack.com/archives/C0241GWFG4B/p1700064607120349

Uploading files is not working from applicant facing flows.

What's the solution?

The route guard useTeamEditorAuth() was incorrectly applied to the "public" and not the "private" - anybody can upload to private, only Editors can upload to public 🙃

Maybe another sign that some E2E file upload tests may be a good idea to consider soon?

Copy link
Member

@jessicamcinchak jessicamcinchak left a comment

Choose a reason for hiding this comment

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

Counterintuitive! Sorry I didn't catch this one in review yesterday, thanks for quick fix!

@DafyddLlyr
Copy link
Contributor Author

Counterintuitive! Sorry I didn't catch this one in review yesterday, thanks for quick fix!

I know right - no apologies needed - a quirky language thing where public upload is private, and private is public 🙃

Copy link

github-actions bot commented Nov 15, 2023

Removed vultr server and associated DNS entries

@DafyddLlyr DafyddLlyr merged commit 8e0df7f into main Nov 15, 2023
12 checks passed
@DafyddLlyr DafyddLlyr deleted the dp/file-upload-bug branch November 15, 2023 18:58
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