Entities without "Enable translation" can still be translated by admin users

Created on 22 January 2025, 4 months ago

Problem/Motivation

When "Enable translation" is not enabled for content or taxonomy terms, admin users can still access the translation page and add translations. This behavior contradicts the intended restriction on non-translatable entities. The issue occurs regardless of the source or target languages and affects both content and taxonomy terms.

Steps to reproduce

  1. Create a content item or taxonomy term without enabling "Enable translation".
  2. As an admin user, navigate to the following URLs depending on the entity type:
    • For content: /node/{nid}/translations/add/{source_language}/{target_language} (e.g., /node/1/translations/add/en/ja).
    • For taxonomy terms: /taxonomy/term/{tid}/translations/add/{source_language}/{target_language} (e.g., /taxonomy/term/1/translations/add/ja/en).
  3. Observe that admin users can access the translation page and successfully add a translation.
  4. Test the same URL as a non-admin user, and note that they are correctly denied access.
🐛 Bug report
Status

Active

Version

11.1 🔥

Component

content_translation.module

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024