Only hide unpublished terms from the node form if the user doesn't have 'administer taxonomy' permissions

Created on 7 January 2025, 2 months ago

Problem/Motivation

Over in https://www.drupal.org/project/term_reference_tree/issues/3195698 πŸ“Œ Hide the unpublished terms for node form RTBC a change was made to remove unpublished terms from the node add/edit form. This causes problems for users with the 'administer taxonomy' permission, who need to be able to add content and tag it to an unpublished term. For example, whilst preparing content that will be published later once the term has been published.

Steps to reproduce

* Create an unpublished term
* Log in as a user with 'administer taxonomy' permission
* Go to node add form, try to select the unpublished term - it's not there, but should be

Proposed resolution

Only hide unpublished terms if the user does not have the 'administer taxonomy' permission.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom nicrodgers Monmouthshire, UK

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024