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.
Authenticated users do not have access to edit media files in gallery even if their are authors of that gallery and files.
Of course I check all permissions correctly (edit own files etc.) and I track down that problem is in media_gallery_filter_media_access function file_entity_access always return NULL. So it can be problem with file entity (I use 2.x dev) but not sure.
For me was enough simple hack/fix with let authors edit his files but this need more deep track why could not use normally multiedit.
Comment | File | Size | Author |
---|---|---|---|
#1 | media_gallery-edit_permission_not_working-1879122-1.patch | 1.2 KB | Moloc |
access_hack.patch | 560 bytes | ShadowMonster |
Comments
Comment #1
Moloc CreditAttribution: Moloc commentedThank you for reporting the issue.
It seems, we are using the wrong operation.
Attached a patch, which should fix it.
Comment #2
ShadowMonster CreditAttribution: ShadowMonster commentedThanks, tested and seams work ok now.
Closing
Comment #3
sw3b CreditAttribution: sw3b commentedNice work ! Work like a charm !
And sorry to change it from fixed to reviews but since it is not apply to dev i think it's better like this for people having this issue.
Comment #4
wingalingadingdong CreditAttribution: wingalingadingdong commentedPatch #1 works as intended!
Comment #5
saltednuthttp://drupalcode.org/project/media_gallery.git/commit/071306e