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.
I had a problem where I found it impossible to give the permission for a user other that uid1 to either create or edit a field collection. I traced the problem to an incorrect call to field_access()
. Patch to follow.
Comment | File | Size | Author |
---|---|---|---|
#1 | 0065-Fix-for-1320924-invalid-call-to-field_access.patch | 1.1 KB | mrfelton |
Comments
Comment #1
mrfelton CreditAttribution: mrfelton commentedComment #2
tim.plunkettThanks, committed.
http://drupalcode.org/project/field_collection.git/commit/5a65b47
Comment #4
dwwI just re-ran into this bug over at #1393194: Access bypass in field_collection...
Trying to figure out how field_access() is supposed to work is hard given the unclear API docs. Y'all might be interested in my patch at #1393234: API docs for field_access() are confusing (and maybe willing to RTBC it). ;)
Cheers,
-Derek