Project

General

Profile

Actions

Bug #90164

closed

Page module: Buttons in tt_content_drawHeader() not shown if editor has no permissions to default language

Added by Christian Eßl almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Start date:
2020-01-21
Due date:
% Done:

100%

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

Description

The following scenario:
  • A site with the languages "default" and "german"
  • The configured backend editor has edit permissions for the language "german", but not for "default".
  • Now open the page module as the editor
  • In the select box, switch from "Columns" mode to "Languages" mode.
  • The shown content elements for the "german" language will NOT show the usual buttons in their top bar (edit, show/hide, delete).
    If the editor has permissions for both "default" and "german", he can see the buttons for both languages.

The reason for this behaviour lies in the PageLayoutController.php. Here the property $this->EDIT_CONTENT is saved, which holds the value, if the editor should be allowed to edit a content element. The PageLayoutView later receives this value in its property $doEdit.
In "Languages" mode, you will always see both the default language and the language that is chosen in the second select. But if this mode is chosen, $this->EDIT_CONTENT will always use the default language for determining, if an editor should be allowed to edit content. But these permissions should be checked independently for each language.

Actions

Also available in: Atom PDF