Merge pull request #3743 from biosistemika/SCI-6271-fix-connected-accounts

SCI-6271 Allow giot_connect to be shown in connected accounts
This commit is contained in:
Miha Mencin 2021-12-15 14:30:40 +01:00 committed by GitHub
commit a304e97e61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 %>