Media Inserter: Filter displayed media based on user capabilities #58944
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.
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.
The text was updated successfully, but these errors were encountered: