[TYPO3-english] Plugin Development
Dmitry Dulepov
dmitry.dulepov at gmail.com
Fri Sep 4 12:35:52 CEST 2009
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
More information about the TYPO3-english
mailing list