Revoking admin rights does not stop impersonating
Summary
I was an admin and go impersonate to other admin user. Then my admin rights were revoken, but my impersonation still works, I am impersonated admin. And "Stop impersonation" returns 404.
Steps to reproduce
- Setup admin rights
- Impersonate user (another admin in my case)
- Revoke admin rights
What is the current bug behavior?
Impersonation still works. Clicking "Stop impersonation" gets 404.
What is the expected correct behavior?
Impersonation must be stopped after admin rights are revoken.
P.S. After some other clicking and impersonating I ran to other bug: gitlab-ce#28587