Issue Bug New Orphaned

#84119Limiting a BE-User to default language results in inconsistent saves.

Anonymous 03/02/18, 15:34 updated 10/31/24, 07:21

Description

scenario

I have a backend user who is only allowed to edit the default language.
This user now tries to edit a text media content element.

expected behavior

The user is able to save the content element.

What actually happens

The user gets this error:
@recordEditAccessInternals() check failed. [ERROR: Language was not allowed.]@

I assume this is because of the new copying behaviors. If I check the \TYPO3\CMS\Core\Authentication\BackendUserAuthentication::recordEditAccessInternals method, I see that all languages are checked for which a translation of the content element exists.

Workaround

I extended the BackendUserAuthentication class and removed that specific call to checkLanguageAccess. The other languages are still not visible but they could be edited now.

Reviews 1

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". The changes above were merged or abandoned: read them before you start. How to create a patch

Commit message
[BUGFIX] Limiting a BE-User to default language results in inconsistent saves. Resolves: #84119 Releases: main