main ← fix/impersonate-2fa-missing
merged 09:08PM - 02 Sep 26 UTC
Fixes an edge case where an user can get stuck impersonating another user withou…t 2FA, when 2FA enforcement is enabled. The impersonation correctly shows the user can only interact with UI elements for adding 2FA. But this restriction extends to the closing the impersonation session.
This commit fixes this by ensuring the DELETE /admin/impersonate endpoint is always accessible.