Hi! Kay Strobach wrote: > The following code works perfectly as BE User with admin=1. > It should calculates the value of all constants for the fe. And > changes the one defined with name und sets it to the given > value. > > Is there anyway to make a normal user temporaly admin? > I thought, that it would be possible to do it with > $GLOBALS['BE_USER']->user['admin']=1; > And setting it back to the previous value. > As seen in the code below.
Move "$GLOBALS['BE_USER']->user['admin']=$userStatus;" above "$tce->start($recData,Array());". -- Dmitry Dulepov Facebook: http://www.facebook.com/dmitryd Twitter: http://twitter.com/dmitryd Skype: liels_bugs _______________________________________________ TYPO3-english mailing list TYPO3-english@lists.netfielders.de http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english