
Hello, I have a question about permission management on my website. I have two user roles that can create content, and within the text editor, they have the ability to add images. However, these users also have access to all the images uploaded to the site, which I don’t want.
I’ve noticed that on the Backdrop CMS website, something similar happens: there is no native option to restrict the image search to only those uploaded by the user or to limit access to images already existing on the site.
In the permissions settings, I can’t find an option to solve this, as it’s not a specific field but rather a functionality integrated into the form’s text editor.
Is there any way to restrict access to global images and allow users to only view and use the images they have uploaded themselves?
Comments
Hi willowf, the image library is built by a view, located at the path admin/structure/views/view/image_library. You can add a contextual filter called "File: User who uploaded" to the view, and configure it to provide the "User account ID from logged in person" as default value.
Screenshot of the contextual filter dialog:
Thanks a lot for the help, solved it.