[Fix #494] If super-admin is connected, add an link in the header menu
This commit is contained in:
parent
21d667299e
commit
c713518ac1
2 changed files with 6 additions and 1 deletions
|
@ -27,7 +27,11 @@
|
|||
%li
|
||||
.menu-item{ title: current_email }
|
||||
= current_email
|
||||
|
||||
- if administration_signed_in?
|
||||
%li
|
||||
= link_to administrations_path, class: "menu-item menu-link" do
|
||||
= image_tag "icons/super-admin.svg"
|
||||
Passer en super-admin
|
||||
- if SwitchDeviseProfileService.new(warden).multiple_devise_profile_connect?
|
||||
- if user_signed_in?
|
||||
%li
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue