fixed  Issue 1539:user_groups are not updated during and after impersonation, thanks kmouts