Fixed login-user/logout/login-admin bug

Initially logging in as a user, then logging out and logging back in as
administrator resulted in administrator-level panels not being
accessible.