2010年11月2日星期二

[fw-auth] Re: Mimic a user

Jurian Sluiman wrote:
>
>
> So the only thing you need to do is:
> $username = $myOtherUser->username;
> Zend_Auth::getInstance()->getAdapter()->write($username);
>
>

That is very interesting as it is what I started doing. How would I show the
admin toolbar on the users home page?

I assume as well as impersonating them (and saving my original admin login
details) I would need to elevate that user to have the same privilidges as
the original admin user? Then show the toolbar (and validate all the admin
actions) using $acl->isAllowed(...) ?

Thank you for the help :)

monk.e.boy

--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/Mimic-a-user-tp3023001p3023533.html
Sent from the Zend Auth mailing list archive at Nabble.com.

没有评论: