Merge pull request #1820 from betagouv/fix-identity-switcher-for-user

User header should not display the 'switch to user interface' button
This commit is contained in:
gregoirenovel 2018-04-10 18:17:31 +02:00 committed by GitHub
commit 12639646e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,7 +58,7 @@
= image_tag "icons/super-admin.svg"
Passer en super-admin
- if SwitchDeviseProfileService.new(warden).multiple_devise_profile_connect?
- if user_signed_in? && nav_bar_profile != :usager
- if user_signed_in? && nav_bar_profile != :user
%li
= link_to users_dossiers_path, class: "menu-item menu-link" do
= image_tag "icons/switch-profile.svg"