Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently the media browser shows all files, even files published on other domains that you can't add to content on a different domain. If you can't add the files they shouldn't be shown.
Comment | File | Size | Author |
---|---|---|---|
#2 | dvg-media_files_by_domain-2895926-2.patch | 1.39 KB | paulvandenburg |
Comments
Comment #2
paulvandenburg CreditAttribution: paulvandenburg at ezCompany commentedWhen the domain module is enabled the media browser view is extended with a filter on the current domain.
I don't know if this is the best solution, since features might overwrite this change. So if anyone knows a better solution, do share.
Comment #3
askibinski CreditAttribution: askibinski as a volunteer and at ezCompany commentedPatch looks good, tested and works as expected.
Comment #5
askibinski CreditAttribution: askibinski as a volunteer and at ezCompany commented