I need to detect if I'm currently browsing the site as a different user, having used the devel user switch module.
The LDAP module I have triggers some profile updates on every login, based on some server variables set from AD/SSO. But by using devel switch, it's writing MY user details, to the profile of the person I've switched to.
I need a way of detecting it, so I can prevent the profile write.
I've had a look through the devel API here but can't see that anything is set when running as another user.