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

Media Inserter: Filter displayed media based on user capabilities #58944

Open
mrfoxtalbot opened this issue Feb 12, 2024 · 0 comments
Open

Media Inserter: Filter displayed media based on user capabilities #58944

mrfoxtalbot opened this issue Feb 12, 2024 · 0 comments
Labels
[Feature] Inserter The main way to insert blocks using the + button in the editing interface [Feature] Media Anything that impacts the experience of managing media [Type] Enhancement A suggestion for improvement.

Comments

@mrfoxtalbot
Copy link

What problem does this address?

There are scenarios where a site administrator will want to filter what users can and cannot see in the Media Library based on roles and capabilities. As per this comment in #44496 (comment) The new Media Inserter does not seem to support any type of filtering.

What is your proposed solution?

The Media Inserter should check for a user's capabilities to allow filtering. I imagine that, ultimately, pattern and block visibility should be filterable by capabilities as well.

Additional context

I realized this was a limitation when someone opened this support thread on my plugin.

@mrfoxtalbot mrfoxtalbot added [Type] Enhancement A suggestion for improvement. [Feature] Inserter The main way to insert blocks using the + button in the editing interface [Feature] Media Anything that impacts the experience of managing media labels Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Inserter The main way to insert blocks using the + button in the editing interface [Feature] Media Anything that impacts the experience of managing media [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

1 participant