Bug #23705

sections in flexform check access to language 0 even if record is in another language

Added by Andreas Kiessling almost 11 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-10-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

This problem may be best seen in action with templavoila, but it is caused by the core handling of sections in flexforms.

When a section is defined in a flexform, the function getSingleField_typeFlex_draw in class t3lib_TCEforms checks if the user has access to the default language. This check is even done, when the record is totally unrelated to the default language, e.g. when you have a localized copy of an fce or a flexform in a simple extension record.

When a user has no access to the default language, he can not create a new entry in the section, but only edit the already existing.

The check should be changed if the user can edit the language of the current record, but probably only if the flexform is configured with langDisable = 1

(issue imported from #M15958)


Files

15958_v1.patch (847 Bytes) 15958_v1.patch Administrator Admin, 2010-10-11 15:14
15958_v5.patch (934 Bytes) 15958_v5.patch Administrator Admin, 2011-01-10 12:03

Also available in: Atom PDF