Content translation should allow for a language-aware access checks

Created on 6 December 2018, almost 6 years ago
Updated 21 June 2023, over 1 year ago

Problem/Motivation

Drupal content translation system does not allow for language-aware access checks. Seems like this has been intentionally done here #1807776-148: Support both simple and editorial workflows for translating entities

Proposed resolution

Introduce new Interface for content translation access check, which is aware of source/target/entity language.

Remaining tasks

  1. Review the approach
  2. Add proper tests coverage
  3. Change record

User interface changes

None

API changes

  • New interface Drupal\content_translation\ContentTranslationAccessHandlerInterface
  • New interface implementation Drupal\content_translation\ContentTranslationAccessHandler
  • Deprecation of Drupal\content_translation\ContentTranslationHandlerInterface::getTranslationAccess()

Data model changes

None

Release notes snippet

Not yet

Feature request
Status

Needs work

Version

11.0 🔥

Component
Content translation 

Last updated 2 days ago

No maintainer
Created by

🇺🇦Ukraine Taran2L Lviv

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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