From c8d3b1baced6c2c5c518f4e6605e3b1fd6dcf17e Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Sat, 6 Apr 2024 12:56:05 +0300 Subject: [PATCH] reorder settings --- app/views/shared/_settings_nav.html.erb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/shared/_settings_nav.html.erb b/app/views/shared/_settings_nav.html.erb index 480c5002..b7879566 100644 --- a/app/views/shared/_settings_nav.html.erb +++ b/app/views/shared/_settings_nav.html.erb @@ -42,11 +42,6 @@ <%= link_to 'Users', settings_users_path, class: 'text-base hover:bg-base-300' %> <% end %> - <% if can?(:manage, :saml_sso) && can?(:read, EncryptedConfig.new(key: 'saml_configs', account: current_account)) && true_user == current_user %> -
  • - <%= link_to 'SSO', settings_sso_index_path, class: 'text-base hover:bg-base-300' %> -
  • - <% end %> <% if Docuseal.demo? || !Docuseal.multitenant? %> <% if can?(:read, AccessToken) %>
  • @@ -86,6 +81,11 @@ <% end %>
  • <% end %> + <% if can?(:manage, :saml_sso) && can?(:read, EncryptedConfig.new(key: 'saml_configs', account: current_account)) && true_user == current_user %> +
  • + <%= link_to 'SSO', settings_sso_index_path, class: 'text-base hover:bg-base-300' %> +
  • + <% end %> <% if (can?(:manage, EncryptedConfig) && current_user == true_user) || (current_user != true_user && current_account.testing?) %>
  • <%= form_for '', url: testing_account_path, method: current_account.testing? ? :delete : :get, html: { class: 'flex w-full' } do |f| %>