Install
Works with Drupal: ^9.3 || ^10Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
This is the first release from the 4.x branch and a beta release for the next major version of Taxonomy Access Fix. Beta releases are intended for site owners and module or theme authors to test new features and upgrade paths. Beta releases are not intended for production.
This release is compatible with Drupal 9.3, 9.4, 9.5 and 10.
In addition to automated tests in various configurations run prior to release, this release has been manually tested on Drupal 9.4.5 and Drupal 10.0.0-alpha7.
Important changes since 8.x-3.3
The permission label View terms in VOCABULARY has been renamed to VOCABULARY: View published terms. The machine name of the permission has not been changed.
The permission label Reorder terms in VOCABULARY has been renamed to VOCABULARY: Reorder terms. The machine name of the permission has not been changed.
The permission to VOCABULARY: View published terms no longer gives access to view the term name of published terms or to select published terms in autocomplete widgets of certain entity reference fields. New permissions have been added for these operations. Roles with this permission will be assigned the new permissions during the update process so that access for existing roles should not change. When configuring new roles, you need to assign these new permissions manually, if needed. For more information on the new permissions see below or in the README.md file of the module.
New features since 8.x-3.3
Drupal 10 compatibility
This is the first release of Taxonomy Access Fix that is compatible with Drupal 10.
Support for "Manage permissions" tab
Per-vocabulary permissions provided by Taxonomy Access Fix are now listed on the new per-entity-bundle "Manage permissions" tab introduced in Drupal 9.4.
Better support for Migrations from Drupal 7 to Drupal 9/10
When using the Drupal 7 User Role migration provided by Drupal Core, permissions provided by Taxonomy Access Fix are now migrated to the correct permissions in Drupal 9/10.
Create, edit or delete terms in any vocabulary
Per-vocabulary permissions to create, update or delete terms are provided by Drupal Core. Taxonomy Access Fix now additionally provides permissions to create, update or delete terms in any vocabulary. These new permissions are not added to roles automatically. If you want to use this feature, you need to add the new permission manually.
View term names / View terms
The new per-vocabulary VOCABULARY: View published term names permission will allow users to view the term name of published terms. To view term names of unpublished terms, users will need the per-vocabulary VOCABULARY: View unpublished term names permission or permission to Administer vocabularies and terms provided by Drupal Core. This permission will be assigned to roles with the VOCABULARY: View published terms permission during the update.
The new per-vocabulary VOCABULARY: View unpublished terms permission will allow users to view unpublished terms. This new permission is not added to roles automatically. If you want to use this feature, you need to add the new permission manually.
Permissions to view any terms and view any term names are now also available both for published and unpublished terms. They will grant access to view terms or term names for any vocabulary. These new permissions are not added to roles automatically. If you want to use this feature, you need to add the new permission manually.
View vocabulary name
The new per-vocabulary VOCABULARY: View vocabulary name permission will allow users to view the name of the vocabulary. There is also a permission to View any vocabulary name. These new permissions are not added to roles automatically. If you want to use this feature, you need to add the new permission manually.
Note: Users having permission to access the overview page of a vocabulary (i.e. the page that lists all terms in a vocabulary) do also have access to view the vocabulary name even if they don't have permission to VOCABULARY: View vocabulary name or View any vocabulary name.
Reorder terms
A new permission to Reorder terms in any vocabulary is now available, that will allow users to change the order of terms in any vocabulary. This new permission is not added to roles automatically. If you want to use this feature, you need to add the new permission manually.
Users with permission to reorder terms will not have permission to reset the term order to alphabetical, unless they also have permission to reset a vocabulary.
Reset vocabulary
The new per-vocabulary VOCABULARY: Reset permission will allow users access to the vocabulary reset form that resets the term order of the vocabulary to alphabetical order. If they also have the Access vocabulary overview page permission provided by Drupal Core, they will be granted access to the vocabulary collection page and the vocabulary overview page for the relevant vocabulary and the Reset to alphabetical order button on that page. A permission to Reset any vocabulary is also available, that will grant access to reset the term order to alphabetical for any vocabulary. These new permissions are not added to roles automatically. If you want to use this feature, you need to add the new permission manually.
If users don't have permission to access the vocabulary overview page, they will be redirect to the front page after confirming or canceling the reset operation. You can override the redirect by setting a suitable destination query string parameter.
Select terms
The module will now replace the default entity reference selection plugin for Taxonomy Terms with an extended version that checks for a separate per-vocabulary VOCABULARY: Select published terms permission. This permission will be assigned to roles with the VOCABULARY: View published terms permission during the update.
To select unpublished terms, users will need the per-vocabulary VOCABULARY: Select unpublished terms permission or permission to Administer vocabularies and terms provided by Drupal Core. Permissions to select any term are also available both for published and unpublished terms. They will grant access to select terms for any vocabulary. These new permissions are not added to roles automatically. If you want to use this feature, you need to add the new permission manually.
Note: Users with permission to select terms will be able to see the term labels of those terms in the results of the autocomplete widget, even if they don't have permission to "view" those term names or terms. Only Entity Reference fields referencing Taxonomy terms using the "Default" reference method will honor this permission.
Database updates
Users upgrading from earlier releases will have to apply 2 database updates, which will assign the new VOCABULARY: View published term names and VOCABULARY: Select published terms permissions to roles that previously had the VOCABULARY: View published terms permission. Users are encouraged to review the updated permissions after the update.
How to upgrade from 8.x-3.x
To upgrade from 8.x-3.x, please update to 8.x-3.3 first. Once you have applied the database changes, you should be able to upgrade to 4.x at any time.
Core compatibility and expected end of life
| Branch | Core compatibility | Expected end of life |
| 7.x-2.x | 7 only | EOL of Drupal 7 (November 1, 2023) or later |
| 8.x-3.x | 8 and 9 | Extended: December 14, 2022 or later |
| 4.0.x | 9.3, 9.4, 9.5 and 10 | to be decided |
Disclaimer: EOL dates for branches are provided as a service to the community so that you can plan ahead and upgrade in time. They reflect our current plans. Unforeseen issues may arise at any time, that may result in a branch being unsupported earlier than expected. We will do our best to prevent this, though.
See also: Drupal core release cycle: major, minor, and patch releases
Thanks
My sincere thanks go out to (in alphabetical order) Alex Kuzava, Alex Milkovskyi, anruether, Arunkumar Kuppuswamy, Daniel Rodríguez, Dieter Blomme, Dmitry Korkhau, DrColossos, Duncan Worrell, Eliot Scott, Michaël Soetaert, Moritz Peikert, Narendra Rathore, Nick Abbott, Nicolas Ricklin, Sergey Pustynnykh, Srishti Bankar, Qiangjun Ran and last but not least Zoltan Attila Horvath for contributing patches, bug reports or other valuable feedback to this release.
Changes since 8.x-3.3
- #3269599 by FeyP, michaelsoetaert, Goodmood, arunkumark, dmitry.korhov: Add "any term" permission for all actions.
- #3161541 by a.milkovsky, FeyP, SirClickALot, anruether: Add permissions to view vocabulary names.
- #3196401 by FeyP, nginex, daften, DrColossos: Reset to alphabetical order gives 403.
- #3307710 by FeyP: Rename permission labels to "VOCABULARY: ACTION".
- #3252599 by FeyP: Support the "Manage permissions" tab for vocabularies.
- #3307704 by FeyP: Add compatibility with Drupal 10.
- #3110558 by FeyP, technoveltyco, el1_1el, shortspoken, dunx: Add a select terms permission.
- #3271794 by FeyP: Add "view unpublished term names" permissions.
- #3256465 by jungle, FeyP: Add 'view label' access control to term names.
- #3258543 by huzooka, FeyP: Test coverage for Taxonomy access fix permission migrations from D7 to D9.
- #3258347 by srishtiiee, narendraR, FeyP: Migrate permissions from D7 to D9.
- #3167136 by Aerzas, FeyP: View unpublished taxonomy term permission
- #3255111 by FeyP: Remove deprecation notices for tests in Drupal 9