-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
feat(submission): add project_contributors dependency for permission … #1873
feat(submission): add project_contributors dependency for permission … #1873
Conversation
…checks in submission download
0bc5349
to
cd14a03
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor change to a comment needed, but this is a really neat addition 😄
My only concern is that this is quite restrictive.
In the long term I think we need to go the route discussed a few meetings ago, with different level of project access being properly implemented. So this logic would perhaps be moved to the mapper role, determining access based on the 4 project visibilities discussed.
Let's go with that for now though!
What type of PR is this?
Related Issue
Fixes Make submission data downloads only possible for project contributors #1849
Describe this PR
The code adds a dependency to the routes responsible for submission downloads to only allow access if they are a project contributor.
Review Guide
The criteria to be a project contributor may need further discussion.
Checklist before requesting a review