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 commentedAttached patch fixes the 'edit' permission check in taxonomy_overview_terms()
Comment #2
rudiedirkx commentedAccording to my calculations
$itemis 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 commentedComment #4
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 commentedOf course you're right =) Fixed.