This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Login as another user in SugarCRM and switch back to admin user | |
* | |
* Simply put this file into a custom entry point file and | |
* browse to it with the parameters 'user_name' or 'back_to_sudo' | |
* | |
* Usage: | |
* http://xxxxxxxxx/index.php?entryPoint=my_awesome_entry_point&user_name=mylittlepony | |
* http://xxxxxxxxx/index.php?entryPoint=my_awesome_entry_point&back_to_sudo=1 |