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

Add possibility of registered access for file download #544

Merged
merged 22 commits into from
Apr 24, 2019

Conversation

talavis
Copy link
Contributor

@talavis talavis commented Apr 18, 2019

Describe the pull request:

  • Bug fix
  • Functional change
  • New feature
  • Code cleanup
  • Build system change
  • Documentation change
  • Language translation

Pull request long description:

Make it possible to skip the Access requested/Access granted step for datasets that have file_access set to Registered. Registering an account will be enough for access. File access have been updated as well.

Changes made:

User.has_access now checks the property of file_access as well. Function calls updated to include version as parameter.

Related issues:

The file uris in the database table data.dataset_files must be updated to include /versions/<ds_version>/ to support the changes made here.

note: /versions/ matches the other API paths in backend/route.py, but backend/modules/browser/route.py and the frontend are using /version/. Maybe change the API paths for all entries in backend/route.py to /version instead?

@talavis
Copy link
Contributor Author

talavis commented Apr 23, 2019

Bypassing security using /versions/ should be fixed.

@viklund viklund merged commit 3d02a9a into develop Apr 24, 2019
@viklund viklund deleted the feature/registered-access branch April 24, 2019 13:00
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.

None yet

2 participants