User without translation permission get error messages on taxonomy forms.

Created on 20 June 2025, 16 days ago

Problem/Motivation

This issue is closely related to the issue ' User without translation permission get error messages on forms unrelated to translation 🐛 User without translation permission get error messages on forms unrelated to translation. Active .' If a user without automatic translation permission but with taxonomy edit permission opens a taxonomy edit form, the same error message is displayed.

Proposed resolution

I created a patch similar to the previous one. The difference is, hook_form_alter can be triggered by forms which do not have the getEntity method. To avoid a PHP error, the first check is different.

Anyway, since both solutions are quite similar, it might be worth considering to create a separate function for this check, especially given that something similar will probably also be needed for the hook_form_media_form_alter at line 61. What do you think about this? If it helps, I can create a suitable patch.

🐛 Bug report
Status

Active

Version

1.4

Component

Code

Created by

🇩🇪Germany Martin Mayer Germany and Philippines

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

Comments & Activities

Production build 0.71.5 2024