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

Check some operations to make sure users can't create files on unassignable DPs or groups #1311

Open
prioux opened this issue Mar 15, 2023 · 0 comments

Comments

@prioux
Copy link
Member

prioux commented Mar 15, 2023

We have some file operations in CBRAIN which make old assumptions: if you have access to a DP you can write to it, if you have access to a file through a group, you can assign other files to the same group. Example: the "extract" file from a collection, which will extract to the same DP and with the same group ID as the collection. This is wrong when the DP or collection is a dataset assigned to a group that is 'non-assignable'. The code should automatically switch the group and DP to another one (or show an error message to the user?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant