Description
1. Open ldap authentication, but I do not give the admin permission to group 'xpGroup';
2. Create a ldap user 'xp', who belongs to group 'xpGroup', so this user has none permission.
3. When user 'xp' login in, the above bar has showed and been enabled, but the login dialog still show.
4. Then you can click any button on above bar.
Please refer to 'ldap_user_login.png'
I think the login dialog should be closed when you login in correctly, and redirect to the 'Model' page, but this user has no permission.
I have modified this issue, please review the patch, thanks!