Project

General

Profile

Actions

Bug #91900

open

Editor with language restriction to non-default language can't edit records of tables with inline fields configured with l10n_mode => exclude

Added by Tobias D over 4 years ago. Updated 24 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Localization
Target version:
-
Start date:
2020-07-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In one of our projects we have a table for locations. This table has a file relation field for images, which is configured with 'l10n_mode' => 'exclude'.

The default language is German. There is a folder in the page tree, which contains only russian locations (they aren't translations of a german record, but created directly in russian).

When an editor, who is restricted to only the russian language, tries to edit those records, he gets an error: "Sorry, you didn't have proper permissions to perform this change. ERROR: Language was not allowed.".

This likely happens, because the file relation in sys_file_reference is created with sys_language_uid = 0 when l10n_mode is set to exclude, resulting in an error, because the editor can't access the default language.

I tested this in the most recent versions of TYPO3 8, 9 and 10. They all behave identically.


Files

2022-10-20_10-51.png (20.5 KB) 2022-10-20_10-51.png Kevin Ditscheid, 2022-10-20 08:54
2022-10-20_10-53.png (32.5 KB) 2022-10-20_10-53.png Kevin Ditscheid, 2022-10-20 08:54
nonDefaultLanguageAccess.diff (1.5 KB) nonDefaultLanguageAccess.diff Kevin Ditscheid, 2022-10-21 06:45

Related issues 3 (1 open2 closed)

Related to TYPO3 Core - Bug #84119: Limiting a BE-User to default language results in inconsistent saves.New2018-03-02

Actions
Related to TYPO3 Core - Bug #93266: Backend-User restricted to language fails to edit tt_content records with inline relationClosed2021-01-11

Actions
Related to TYPO3 Core - Bug #102625: "showPossibleLocalizationRecords" throws error if editor has no access to default language (Language was not allowed)Closed2023-12-07

Actions
Actions

Also available in: Atom PDF