- Issue created by @rhristov
- Merge request !446Issue #3503980: The translation submodule does not respect the content translation module permissions → (Open) created by Unnamed author
- 🇧🇪Belgium wouters_f Leuven
I did not test it but the code looks sound.
I'm not sure, should we also check$account->hasPermission('translate any entity')
OR will that happen automatically in$handler->getTranslationAccess($entity, 'create')->isAllowed()
? - 🇬🇧United Kingdom MrDaleSmith
mrdalesmith → changed the visibility of the branch 3503980-the-translation-submodule to hidden.
- 🇮🇳India annmarysruthy
Tested the MR !446. On applying the changes, :
- The user can translate the content in which user has translate permission. Also if user has 'Translate any entity' permission, the 'Translate using @ai' button appears. Otherwise, N/A will appear under AI translations
- Merge request !484Fix: Ensure the translation button respects Content Translation module permissions. → (Closed) created by annmarysruthy
- 🇮🇳India annmarysruthy
annmarysruthy → changed the visibility of the branch ai-3503980-1.0.x to hidden.
- 🇧🇬Bulgaria valthebald Sofia
Bumping the version + MR is not mergable at the moment
- 🇮🇳India annmarysruthy
While trying to rebase the MR!446 accidently created a new MR. Closed new MR !484.
- Status changed to Needs work
3 months ago 4:48pm 26 June 2025 - Assigned to valthebald
- 🇧🇬Bulgaria valthebald Sofia
valthebald → changed the visibility of the branch 1.0.x to hidden.
- 🇧🇬Bulgaria valthebald Sofia
I've reworked original idea, and added the logic to hide "AI translations" column when user doesn't have permissions or all languages are already translated
- 🇧🇪Belgium svendecabooter Gent
Tested this MR.
I removed all content_translation permissions from a given user.
They could no longer see the "Translations" tab in that case.However, when given the "Create AI translation" permission, they could still access the translation URL directly, and a translation was added.
Not sure if this is desired behaviour, or if it should be an AND operation: only create AI content translations when you have "create ai content translation" permission + the appropriate content_translation permission as well.So the original issue raised in this topic was not yet fixed, AFAIK.
The improved logic to hide the AI Translation column when not relevant, seems to work and is definitely an improvement.