SCI-6271 Allow giot_connect to be shown in connected accounts

This commit is contained in:
Miha Mencin 2021-12-15 14:17:51 +01:00
parent 285d20849c
commit fd54704d3e

View file

@ -11,7 +11,7 @@
<% if @linked_accounts.any? %>
<% @linked_accounts.each do |provider| %>
<% if Rails.configuration.x.azure_ad_apps.find { |_,value| value[:provider] == provider } %>
<% if Rails.configuration.x.azure_ad_apps.find { |_,value| value[:provider] == provider || provider == 'giot_connect'} %>
<% if lookup_context.exists?(provider, 'users/settings/account/connected_accounts', true) %>
<%= render partial: provider %>
<% else %>