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

Restrict access to /byemail routes #143

Merged
merged 7 commits into from
Apr 29, 2021
Merged

Conversation

sylvansson
Copy link
Collaborator

This PR updates the getCommunicatorsEmail and getBoardsEmail routes to return a 403 if a non-admin user sends the wrong email address. There are no restrictions for admins. This is the first step towards updating the Communicator and Board schemas to identify the owner by their id rather than their email address. See #140.

@sylvansson sylvansson self-assigned this Mar 30, 2021
@sylvansson
Copy link
Collaborator Author

@martinbedouret This needs to be reviewed :-)

@sylvansson sylvansson force-pushed the 140-restrict-byemail-routes branch from dfb4ad0 to 9a91cf9 Compare April 29, 2021 03:01
@sylvansson sylvansson force-pushed the 140-restrict-byemail-routes branch from 9a91cf9 to 3c4c310 Compare April 29, 2021 03:03
@sylvansson sylvansson force-pushed the 140-restrict-byemail-routes branch from a62ab95 to e54565b Compare April 29, 2021 03:40
@sylvansson
Copy link
Collaborator Author

I'll merge now since this PR fixes the pipeline for master.

@sylvansson sylvansson merged commit 4997150 into master Apr 29, 2021
@martinbedouret martinbedouret deleted the 140-restrict-byemail-routes branch May 22, 2021 21:27
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