Voting starts in March for the Drupal Association Board election.
Is there a way to redirect to a specific page after masquerading?
I am creating a site where the admin user needs to masquerade to access other user's account. I have created an admin section where I've put a list of all the users. In front of each user there is a "log in as this user" button, that redirects to masquerade:
// at the end of a form_submit handler $form_state['redirect'] = 'masquerade/switch/'.$uid;
The problem is that after going to the masquerade link, it goes back to the admin page, where non-admin users are not authorized to be. So, I get an "access denied".
Is there a way to do something like this:
// at the end of a form_submit handler $form_state['redirect'] = 'masquerade/switch/'.$uid.'?destination=some-page';
Thanks for a great module, by the way!