travert
(Travis Ravert)
November 21, 2022, 2:39pm
2
Currently there is no way in the initial config to do something like this, however I think we could add something to check whether we want the view
to display that button depending on the group
.
We have an issue from someone already about this and I’ve opened an issue to specifically try to build this into the codebase for configuration.
opened 04:26PM - 09 Nov 21 UTC
enhancement
I understand that file upload can be globally disabled as explained here https:/… /osc.github.io/ood-documentation/latest/customization.html#set-upload-limits
But how to disable it for some users ? or user groups ?
And vice versa how to disable file download ?
Thank you
┆Issue is synchronized with this [Asana task](https://app.asana.com/0/1202821104799596/1202823503508136) by [Unito](https://www.unito.io)
And the associated issue I’ve opened to try and build a solution:
opened 02:38PM - 21 Nov 22 UTC
enhancement
component/file_browser
# Request
We've had some requests coming in to limit the ability to download an… d upload files in the files app based on groups:
- https://github.com/OSC/ondemand/issues/1589
- https://discourse.openondemand.org/t/option-to-enable-or-disable-file-transfers-in-the-file-manager-restrict-who-can-upload-or-download-data/2381
This is a ticket to track how to do this.
# Possible Solution
We could use the `OodSupport` object to grab the groups for users to at least use some kind of logic in the `views/files/index.html.erb` file to check if the user belongs to the `data-management` group (or some such name) and render the button only if the user is in that group.
How to set the actual `data-management` group could maybe be done with the `configuration_singleton` by having some one group per site given this accepted role and checked, or maybe an array with many roles appended that is checked. Either way, the idea is to have users set the name of these groups at install with an `ENV` variable, then have that list checked in the `view` to render the button if a use is in the group.
Sorry that is not possible now, but it is on our radar to do so thank you for the input!