[TYPO3] be user rights - require_once (PATH_t3lib.'class.t3lib_tcemain.php')

Anders Tillbeck at at opengate.dk
Tue Jun 12 16:10:48 CEST 2007


Hi

I am copying tt_content using the info found on:
http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.1.0/view/3/3/

My setup works for admins but not for ordinary be_users members of the 
webmaster be_group. I have added and removed permissions in the 
webmaster be_group but without luck. Does anyone know how to execute 
this code?

require_once (PATH_t3lib.'class.t3lib_tcemain.php');
//$alternative_BE_USER = 1;
$tce = t3lib_div::makeInstance('t3lib_TCEmain');
$tce->stripslashes_values=0;
$data['cmd']['tt_content'][$uid]['copy']=$to_page_id;
$tce->start($data['data'],$data['cmd']);
//$tce->start($data['data'],$data['cmd'],$alternative_BE_USER);
$tce->process_datamap();
$tce->process_cmdmap();

I guess it is something with including class.t3lib_tcemain.php or make 
instance of t3lib_TCEmain or...

BR. and thanks,
Anders


More information about the TYPO3-english mailing list