[TYPO3-core] RFC #9576: Bug: Limit to language not effective in list module

Christian Kuhn lolli at schwarzbu.ch
Sat Jan 24 22:03:43 CET 2009


This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=9576

Branches: trunk only, because of behavior

Problem:
If a user is limited to some languages, all language record overlays 
will be displayed in the list module, if the checkbox for localization 
view is not enabled. The edit action to one of those overlay records 
will lead to an access denied message.

Solution:
Display record row only if user has access to this overlay record.

Notes:
Records set to "All languages" or "Default language" (tt_content) will 
still be shown, and the edit link will still lead to "Access denied" if 
such an record is edited.
This patch is just to remove the language overlay records from the list, 
which is especially useful when fiddling with a lot of languages and a 
translator should only see the parent (default or all) record, and the 
record of the language he is supposed to edit.

How to reproduce:
* Create two or more BE language records
* Localize a page to those languages
* Localize a page record to those languages
* Create a BE user with "Limit to language" and choose only one language
* Switch to this user and call list module (Localization view not 
enabled) -> All language overlay records will be shown

Cheers
Christian
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 9576.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090124/aeca8d42/attachment-0001.txt 


More information about the TYPO3-team-core mailing list