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.
Problem/Motivation
The 'edit' link to a taxonomy term edit form is checked incorrectly. This is results in a link to a 403 page for users with insufficient permissions.
Proposed resolution
Correct the existing check for editing permission.
Remaining tasks
- Write a patch
- Review
User interface changes
The 'edit' link no longer shows for users with insufficient editing permissions.
API changes
None
Comment | File | Size | Author |
---|---|---|---|
#1 | taxonomy_access_fix-edit_permission_check-2497111-1.patch | 866 bytes | idebr |
Comments
Comment #1
idebr CreditAttribution: idebr commentedAttached patch fixes the 'edit' permission check in taxonomy_overview_terms()
Comment #2
rudiedirkx CreditAttribution: rudiedirkx commentedAccording to my calculations
$item
is an array, because$item = &$form[$item];
. You're using it as a string (element name). It used to be a string:foreach (element_children($form) as $item) {
So what's up?
Comment #3
rudiedirkx CreditAttribution: rudiedirkx commentedComment #4
idebr CreditAttribution: idebr commentedThat is true for branch 7.x-1.x, but not in 7.x-2.x:
7.x-1.x: http://cgit.drupalcode.org/taxonomy_access_fix/tree/taxonomy_access_fix....
7.x-2.x: http://cgit.drupalcode.org/taxonomy_access_fix/tree/taxonomy_access_fix....
Comment #5
rudiedirkx CreditAttribution: rudiedirkx commentedOf course you're right =) Fixed.