[TYPO3-english] Plugin Development

Dmitry Dulepov dmitry.dulepov at gmail.com
Fri Sep 4 22:48:45 CEST 2009


Hi!

Kay Strobach wrote:
> thanks a lot for the hint, but thats not the goal.

I do not understand. My proposal worked because:

> The variable $saveId should point to the nearest template relative to
> pid. That's working as admin f.e. $saveId=71=uid of template, but not as
> normal user ($saveId is empty).
> 
> Thats why i set
> 
> $userstatus = $GLOBALS['BE_USER']->user['admin'];
> $GLOBALS['BE_USER']->user['admin'] = 1;
> 
> at the very beginning of the function.

Basically you did what I said: you moved "$GLOBALS['BE_USER']->user['admin'] = 1" above "$tce->start(...)".

-- 
Dmitry Dulepov
Facebook: http://www.facebook.com/dmitryd
Twitter: http://twitter.com/dmitryd
Skype: liels_bugs


More information about the TYPO3-english mailing list