I noticed today that I no longer have access to edit fields or display fields in entityqueue. The tabs are gone and going to the page itself gives me a permissions error. It seems that there is a new field permission in core that needs to be checked. I don't have time to look into patching this right now but it removes a big part of the functionality of entityqueue. This seems to have become an issue as of Drupal 7.5.
Old callback
access_callback
entityqueue_queue_access | (Callback) entityqueue_queue_access();
access_arguments
a:2:{i:0;s:4:"view";i:1;i:4;}
New callback
access_callback
field_ui_admin_access | (Callback) field_ui_admin_access();
access_arguments
a:2:{i:0;s:24:"entityqueue_queue_access";i:1;a:2:{i:0;s:4:"view";i:1;i:4;}}
Comment | File | Size | Author |
---|---|---|---|
#3 | entityqueue_manage_fields_access_args-2791961-3.patch | 475 bytes | aether |
Comments
Comment #2
narquam CreditAttribution: narquam at Digital Bridge Solutions for American Medical Association commentedTraced the problem to entityqueue_entity_info(). Seems the access arguments are the issue, it needs to be changed and there are two options.
Original argument is 'access arguments' => array('view', 4)
Option 1: 'access arguments' => array('view', $name)
Option 2: 'access arguments' => array('view', '4')
Comment #3
aether CreditAttribution: aether at Four Kitchens commentedPatch for the fix documented in #2.
Comment #4
aether CreditAttribution: aether at Four Kitchens commentedComment #5
dasj19 CreditAttribution: dasj19 commentedI used almost an entire working day until I found this issue, this needs to be released ASAP.
Another patch could be to use $queue:
'access arguments' => array('view', $queue),
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous at Cheeky Monkey Media commentedThis patch works great - it provides proper access checks for the different queue pages.
Comment #8
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedThanks @aether for the patch and everyone for testing! Committed and pushed to 7.x-1.x.