Bug #102625
closed"showPossibleLocalizationRecords" throws error if editor has no access to default language (Language was not allowed)
100%
Description
The TCA feature for inline/IRRE fields "showPossibleLocalizationRecords" causes an error if the editor has no access to the default language.
Language was not allowed
E.g. default language is english, second language is german. The editor ist restricted to german language and tries to edit an content elment with inline Elments (e.g. text & media). In the inline elements of the translated element is at least one element missing that is present in the default language. This should be displayed grayed out with a button to localize it if this feature is activated. But this causes an error, because the editor has no access to the default language.
There is no Problem if all inline elements are localized in to the language the editor has access to. But as soon as he deleted one of these inline elements (and the editor is even allowed to do it) and save the content element, he is not longer be able to edit the whole content element.
This error seems to be an old one as it is described here for TYPO3 v10 https://forge.typo3.org/issues/93266
In TYPO3 v12 the behaviour of inline elements have changed for standard TYPO3 content elements (Text & Media, Images, Uploads etc.) and this feature is now activiated by default. We noticed this problam as we updated one of our Projects from v10 to v12.
I think this behaviour should be intercepted. E.g. do not display possible localization records if the editor has no accesss to the default language.