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

Set File Upload and Downloads Permission by Group #2373

Open
Oglopf opened this issue Nov 21, 2022 · 0 comments
Open

Set File Upload and Downloads Permission by Group #2373

Oglopf opened this issue Nov 21, 2022 · 0 comments
Labels
component/file_browser enhancement This is functionality that builds upon existing functionality.
Milestone

Comments

@Oglopf
Copy link
Contributor

Oglopf commented Nov 21, 2022

Request

We've had some requests coming in to limit the ability to download and upload files in the files app based on groups:

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.

┆Issue is synchronized with this Asana task by Unito

@Oglopf Oglopf added enhancement This is functionality that builds upon existing functionality. component/file_browser labels Nov 21, 2022
@Oglopf Oglopf added this to the 2.2 milestone Nov 21, 2022
@johrstrom johrstrom modified the milestones: 3.1, 4.0 Oct 5, 2023
@johrstrom johrstrom modified the milestones: 4.0, 4.1 Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/file_browser enhancement This is functionality that builds upon existing functionality.
Projects
None yet
Development

No branches or pull requests

2 participants