Commit d404d2f5 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Do not display API key if API is disabled.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3224 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 682829a9
......@@ -15,6 +15,7 @@
(<%= link_to l(:button_reset), {:action => 'reset_rss_key'}, :method => :post %>)
</p>
<% if Setting.rest_api_enabled? %>
<h4><%= l(:label_api_access_key) %></h4>
<p>
<% if @user.api_token %>
......@@ -24,3 +25,4 @@
<% end %>
(<%= link_to l(:button_reset), {:action => 'reset_api_key'}, :method => :post %>)
</p>
<% end %>
......@@ -52,7 +52,7 @@
<% end %>
</div>
<% if @user.api_token %>
<% if Setting.rest_api_enabled? && @user.api_token %>
<h3><%=l(:label_api_access_key) %></h3>
<div class="box">
<p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment