|
|
|
|
@ -56,6 +56,8 @@
|
|
|
|
|
<%= link_to 'API', settings_api_index_path, class: 'text-base hover:bg-base-300' %>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if Docuseal.demo? || !Docuseal.multitenant? || (current_user != true_user && !current_account.testing?) %>
|
|
|
|
|
<% if can?(:read, WebhookUrl) %>
|
|
|
|
|
<li>
|
|
|
|
|
<%= link_to 'Webhooks', settings_webhooks_path, class: 'text-base hover:bg-base-300' %>
|
|
|
|
|
@ -70,7 +72,7 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if !Docuseal.demo? && can?(:manage, EncryptedConfig) && (current_user != true_user || !current_account.testing?) %>
|
|
|
|
|
<% if !Docuseal.demo? && can?(:manage, EncryptedConfig) && (current_user == true_user || current_account.testing?) %>
|
|
|
|
|
<li>
|
|
|
|
|
<%= link_to Docuseal.multitenant? ? console_redirect_index_path(redir: "#{Docuseal::CONSOLE_URL}#{'/test' if current_account.testing?}/api") : "#{Docuseal::CONSOLE_URL}/on_premises", class: 'text-base hover:bg-base-300', data: { prefetch: false } do %>
|
|
|
|
|
<% if Docuseal.multitenant? %> API <% else %> <%= t('console') %> <% end %>
|
|
|
|
|
|