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.
Thinking about the d.o use-case, we're going to:
a) want most users not to be able to remove each other's files
b) give certain trusted users the ability to do so in case of cleaning up spam.
So, I guess we need some kind of new permission. :/ Not sure what it should be called. Not sure if we need to change anything about how the settings related to hiding the remove button work or are called, too (other than #1964630: Invert the wording (and behavior) of the setting for the remove button which is a good idea, anyway).
Comments
Comment #1
jthorson CreditAttribution: jthorson commentedThe fix for this is probably closely related to the work occuring in #1965078: Allow users to remove their own newly uploaded file, even if the widget is configured to hide the remove button. (i.e. Can use a similar approach.)
Comment #2
dwwYeah, I just wish I knew what to call this permission so that it makes sense in combination with the widget configuration settings.
Also, I know this is going to be an issue for d.o, so tagging accordingly.
Comment #3
tvn CreditAttribution: tvn commented'Administer file attachments'?
Comment #4
dwwJust hashed this out a bit in IRC with tvn. Highlights:
So, this all seems quite straight forward. I'll take this since it's a blocker for #1545952: [META] UI for updating an issue in D7.
Comment #5
dwwUgh. This was harder than it should have been due to some bugs introduced via other issues:
#1964100-9: Refactor extended_file_field_field_formatter_view() structure
#1964630-6: Invert the wording (and behavior) of the setting for the remove button
But, 3 commits later, we're all set here:
http://drupalcode.org/project/extended_file_field.git/commit/d438f10
http://drupalcode.org/project/extended_file_field.git/commit/9fa89a4
http://drupalcode.org/project/extended_file_field.git/commit/2da829a