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.
Hi all,
I have 2 node types: articles and cars.
A file entity field is attached to both so users, through media module, can attach images to articles and cars.
Now I want a moderator role that can edit files attached to cars ONLY.
How to accomplish this?
Granting "Edit any files" to Moderator allow him to edit every files, articles attached files also, but I don't want this.
Thank you for any help
Comments
Comment #1
MXTMaybe I've found a workaround.
Files editing is accessible in a general direct way (bypassing their nodes) by the following url:
www.mysite.com//file/[fid]/edit
So only through this link a Moderator can have access and edit ANY file (please tell me if this is correct).
So, doing:
Moderators with "Edit any file" permission (and everyone in anycase) cannot directly access to edit files, but they can edit files with media module through nodes they have edit access to (e.g. cars)
Do you think guys this could be a good workaround?
There is a better way to accomplish this?
Thank you very much