Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Edit Translated Containers (Unnecessary Permission Check) #530

Open
lsztrokay opened this issue Sep 6, 2024 · 1 comment
Open

Comments

@lsztrokay
Copy link

I am encountering a problem with translated containers in a multilingual TYPO3 setup. I have a Base Language (EN) and two translations for the page (DE and CZ). I created a container element in the Base Language and translated it into the other two languages.

When logged in as a Backend User with permissions to edit only EN and CZ (but not DE), I am unable to edit the containers for EN or CZ. Upon debugging, I discovered that the function recordEditAccessInternals in BackendUserAuthentication.php is being executed three times—once for each language (EN, CZ, and DE).

The issue arises when trying to edit the CZ container. The system should not check the DE permissions when DE is not part of the user's allowed languages.

@achimfritz
Copy link
Contributor

Hi @lsztrokay , mh, i cannot see any difference between an "normal" CE and a container CE at all, and i can also edit the CZ container as editor, i see an error, when editing the EN Container as editor "ecordEditAccessInternals() check failed [ERROR: Language was not allowed.]", but the container is saved, and it is the same behaviour with a "normal" CE.

Which TYPO3/container/PHP Versions are you use? (i have testet with 12/3.0/8.2). Can you provide your site-config and a minimal dump of your contents and be_user/be_groups ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants