Issue Bug Closed

#93266Backend-User restricted to language fails to edit tt_content records with inline relation

Anonymous 01/11/21, 15:49 updated 10/15/24, 09:30

Description

Summary: Backend-User restricted to language fails to edit tt_content records with inline relation

Prerequisites:

  1. at least one additional language. In my example there is DEFAULT, EN and RU
  2. tt_content element ctype with inline relation

Configuration:

Backend-User “editor_russian” is restricted to language RU in its user-settings.

clipboard-202101111646-cko0w.png

What happened?

Backend-User “editor_russion” tries to edit (just access – we are not talking about saving yet) a tt_content element with an inline relation (IRRE).

> Sorry, you didn’t have proper permissions to perform this change.
> ERROR: Language was not allowed.

clipboard-202101111647-assn8.png

Cause:

BackendUserAuthentication.php calls checkLanguageAccess and fails.

But why?

clipboard-202101111643-ykgiw.png

Ghosts!

This kind of strange…

…it turned out, that “ghosts” are checked too!

Why are ghosts checked for language-access?

Is this really on purpose?

Reviews 0

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