- 🇭🇺Hungary balagan
I confirm that applying the patch in #4 solves the problem. Edit/Delete operation buttons only display for eligible translations.
- last update
over 1 year ago 29,723 pass
The \Drupal\content_translation\Controller\ContentTranslationController::overview()
method checks update/delete access on an untranslated entity, while the \Drupal\content_translation\Access\ContentTranslationManageAccessCheck::access()
checks access on a specific translation. Once an entity access check depends on a value of a translatable field or on the active language of the translation, users may end up seeing access denied, because access to the translation form is denied for users who are able to use the edit form.
The Allowed Languages module just implements a language-dependent access check that triggers the bug, the same could be achieved with a custom module. It also provides a route access check, but even with the allowed_languages.content_translation_access_check
service removed, the issue is still reproducible.
Perform the access check on an entity translation in the content translation overview.
No.
No.
No.
TODO
Needs work
9.5
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
I confirm that applying the patch in #4 solves the problem. Edit/Delete operation buttons only display for eligible translations.