> 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
The idea is you appear to be that user. So you don't see the admin-bar and you
don't have admin privileges. But if you save your admin's identity it's
possible to return to that state when you logout.
Regards, Jurian
--
Jurian Sluiman
Soflomo - http://soflomo.com
没有评论:
发表评论