|
|
|
|
@ -42,11 +42,6 @@
|
|
|
|
|
<%= link_to 'Users', settings_users_path, class: 'text-base hover:bg-base-300' %>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if can?(:manage, :saml_sso) && can?(:read, EncryptedConfig.new(key: 'saml_configs', account: current_account)) && true_user == current_user %>
|
|
|
|
|
<li>
|
|
|
|
|
<%= link_to 'SSO', settings_sso_index_path, class: 'text-base hover:bg-base-300' %>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if Docuseal.demo? || !Docuseal.multitenant? %>
|
|
|
|
|
<% if can?(:read, AccessToken) %>
|
|
|
|
|
<li>
|
|
|
|
|
@ -86,6 +81,11 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if can?(:manage, :saml_sso) && can?(:read, EncryptedConfig.new(key: 'saml_configs', account: current_account)) && true_user == current_user %>
|
|
|
|
|
<li>
|
|
|
|
|
<%= link_to 'SSO', settings_sso_index_path, class: 'text-base hover:bg-base-300' %>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if (can?(:manage, EncryptedConfig) && current_user == true_user) || (current_user != true_user && current_account.testing?) %>
|
|
|
|
|
<li>
|
|
|
|
|
<%= form_for '', url: testing_account_path, method: current_account.testing? ? :delete : :get, html: { class: 'flex w-full' } do |f| %>
|
|
|
|
|
|