Issue Bug Closed

#59799showPossibleLocalizationRecords does not work if parent language is not allowed for current BE-User

David Greiner 06/23/14, 10:16 updated 04/23/26, 12:47

Description

Hi!

It seems that showPossibleLocalizationRecords does not work if currently logged-in BE-User does not have access to the language he tries to translate from.

For example:

- create a News-Element (tx_news) with a media element in default language
- switch to a non-admin user which does not have the default language in his “(user or group-)allowed languages” settings
- now, localization is possible by clicking “localize all records” but the possible localization are not shown before do the localization

This is not very usable for editors. Mostly they will not click this button without any preview of possible localizations.

I’ve tried but was unable to find the corresponding code in ./typo3_src/typo3/sysext/backend/Classes/Form/Element/InlineElement.php

Kind regards, David.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 7

  1. Andreas Allacher commented <span data-processor="relativetime" data-value="2014-11-10T16:44:41+00:00" > 11/10/14, 16:44 </span>

    I have the same issue.
    The problem seems to be that in “public function renderForeignRecord($parentUid, $rec, $config = array()) {”

    There is the check “if (!$this->checkAccess(($isNewRecord ? ‘new’ : ‘edit’), $foreign_table, $rec[‘uid’])) {”

    However, this is also done for virtual records which, of course, will fail if one has no access to default language.
    If the record is virtual, it should be enough if we have read access instead “if ($GLOBALS[‘BE_USER’]->check(‘tables_select’, $table)) {”

  2. Riccardo De Contardi commented <span data-processor="relativetime" data-value="2020-03-13T10:01:53+00:00" > 03/13/20, 10:01 </span>

    I report here the description of the issue #87238 to keep track of it

    > *TCA inline element translation with language restriction not possible*
    >
    > TYPO3 8.7.22
    > Custom extension
    >
    > If you try to localize a record with inline relations and your user does have a language restriction it is not possible to > enter the localized record if you have the option showPossibleLocalizationRecords = true.
    > The localized record tries to ‘showPossibleLocalizationRecords’ from the inline element, but the user is not allowed to > access these records.
    >
    > We had to remove the option to showPossibleLocalizationRecords, after that the editor was able to access the translated record. We added the behaviour => localizeChildrenAtParentLocalization to get the child elements from the inline property, but we are not able to see more possible records to translate in this view with the given language restriction.

  3. Christian Kuhn commented and changed status New Closed <span data-processor="relativetime" data-value="2026-04-23T12:47:20+00:00" > 04/23/26, 12:47 </span>

    this has been fixed with #102625