I was slightly confused when I received an "Access denied" page when clicking on the "Reset to alphabetical order"-button, although I had the permission to reorder items. After a quick peek in the code, I noticed that TAF has no influence on that one. The patch included will add that specific route to the RouteSubscriber and check it agains the "Reorder terms"-permissions and it will remove the button if the user doesn't have that specific permission.
| Comment | File | Size | Author |
|---|---|---|---|
| taf-reorder_alphabetically-permission-check.patch | 1.11 KB | lammensj |
Comments
Comment #2
rudiedirkx commentedIf I don't have access, I don't see the buttons, so I don't think
$form['actions']['reset_alphabetical']['#access'] = FALSE;is necessary.
If I do have access, I don't have access. Very very sloppe for a module that's supposed to fix access =) Mea culpa.
I'll try the patch soon.
Comment #4
rudiedirkx commentedThe
#accessisn't necessary because a few lines below:which hides the reset button too.
Used the other part though. Fixed in dev. Thanks!
Comment #5
rudiedirkx commentedNew release to keep the project page fresh: https://www.drupal.org/project/taxonomy_access_fix/releases/8.x-2.1