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

Hide the 'files' tab to non admins #220

Open
markconroy opened this issue May 23, 2024 · 8 comments · May be fixed by #221
Open

Hide the 'files' tab to non admins #220

markconroy opened this issue May 23, 2024 · 8 comments · May be fixed by #221
Assignees

Comments

@markconroy
Copy link
Member

markconroy commented May 23, 2024

The files tab is pretty much meaningless to content designers, they need the 'media' tab.

Let's hide it for all, except admin users.

Image

@markconroy markconroy transferred this issue from localgovdrupal/localgov May 23, 2024
@markconroy markconroy linked a pull request May 23, 2024 that will close this issue
@willguv willguv changed the title Hide the 'files' tab to non admins please Hide the 'files' tab to non admins Jun 18, 2024
@willguv
Copy link
Member

willguv commented Jun 18, 2024

@MariosORION this is related to the tab weights work you've just done, so might be quick for you - thanks

@MariosORION MariosORION self-assigned this Jun 18, 2024
@markconroy
Copy link
Member Author

@willguv we have a PR for this - #221 - but the other core team members think we should not do this for existing sites.

@willguv
Copy link
Member

willguv commented Jun 18, 2024

OK, we should explain how to do it though.

Can it be for new installs?

Is making this change in config a dev job?

@markconroy
Copy link
Member Author

I think it would be good to have it removed for new installs.

For existing sites, it would then mean a developer would have to remove that permission for whatever current roles we don't want it on.

Here's the Merge Tuesday notes for it: #221 (comment)

@MariosORION MariosORION assigned willguv and unassigned MariosORION Jun 20, 2024
@MariosORION
Copy link
Contributor

Thanks both @markconroy, assigning back to @willguv for now.

@willguv
Copy link
Member

willguv commented Jul 24, 2024

@markconroy Does this remove the ability for content designers to fully delete files? If so, we will need to review

@finnlewis mentioned caching causing problems. Maria at Bracknell Forest mentioned the need to instantly delete files when it's really necessary, and has a fix

@stephen-cox mentioned a setting for how long temporary files are kept. When a file is deleted in Drupal it's marked for deletion and done later

Andy says they have a checkbox for users to select when deleting a media item to delete the underlying files as well

@andybroomfield
Copy link
Contributor

Media file delete?
(Might be in the default install already).

Image

@andybroomfield
Copy link
Contributor

The module is called media file delete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress - Everyone else
Development

Successfully merging a pull request may close this issue.

4 participants