mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Ignore empty identity for regisrar user switch #2754
This commit is contained in:
parent
85e5a17509
commit
598ab7ba63
4 changed files with 32 additions and 11 deletions
|
@ -54,7 +54,7 @@
|
|||
= "#{current_user} (#{current_user.roles.first}) - #{current_user.registrar}"
|
||||
%span.caret
|
||||
%ul.dropdown-menu{role: "menu"}
|
||||
- ApiUser.where(identity_code: current_user.identity_code).includes(:registrar).each do |x|
|
||||
- ApiUser.all_by_identity_code(current_user.identity_code).each do |x|
|
||||
%li= link_to "#{x} (#{x.roles.first}) - #{x.registrar}", "/registrar/switch_user/#{x.id}"
|
||||
- if user_signed_in?
|
||||
%li= link_to t(:log_out_), '/registrar/logout'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue