- 🇵🇱Poland gugalamaciek
Consider scenario:
- You are allowed to edit/delete content in original language
- You are not allowed to edit/delete EN translation
On “Translate” tab, “Translate” button was visible when you opened original translation only. When you went to EN translation → clicked “Translate” tab, create translation buttons were not visible. It was because access to create translations was checked based on EN translation (where you don’t have access), not original one (where you have access).
So, by changing:
- $create_translation_access = $handler->getTranslationAccess($entity, 'create'); +$create_translation_access = $handler->getTranslationAccess($entity->getUntranslated(), 'create');
we make sure that create button on translation tab is always calculated based on original content, not current translation.