[TYPO3-dev] Using flexform sections without access to language 0 not possible - any reason why?

Andreas Kiessling kiessling at pluspol.info
Mon Oct 11 12:34:15 CEST 2010


Hi,

i am using some flexform sections in an extension (containing just some 
labels and links, because IRRE would be overkill), but an editor who is 
restricted to his language cannot add new elements.

There is a check in class.t3lib_tceforms.php 
getSingleField_typeFlex_draw -->
$mayRestructureFlexforms = $GLOBALS['BE_USER']->checkLanguageAccess(0);

This check is then used to hide the needed buttons. Has anyone a good 
example, why this check is needed?
I'd change the check from 0 to $row['sys_language_uid'] (should work for 
a quick test, but for a real patch the field should be fetched from tca 
config), because it matters if the editor has the right to edit the 
current record in the selected language, which is probably already done 
by tcemain itself.
Just tested: templavoila has the same issue, since it uses the core 
features to generate the flexform. Might help when you want to reproduce 
the behavioiur.

Is this somehow related to the handling of inline translations in flexforms?

Regards,
Andreas




More information about the TYPO3-dev mailing list