aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-06-17 11:47:56 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-06-17 11:48:05 +0200
commit45a98fc0691fd1965461e7d385ef3d00e083798f (patch)
treec33b7cb78f72d0948f6f4a1f64ed273793eab0f5
parent87ba4226216f9c304a2bf19f717846fd2f052cda (diff)
downloadsonarqube-45a98fc0691fd1965461e7d385ef3d00e083798f.tar.gz
sonarqube-45a98fc0691fd1965461e7d385ef3d00e083798f.zip
SONAR-5027 Profile backup should be accessible anonymously
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/profiles/index.html.erb11
1 files changed, 5 insertions, 6 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/index.html.erb
index 25d653a1548..79670430fe0 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/index.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/index.html.erb
@@ -88,13 +88,12 @@
<% end %>
</td>
+ <td align="right" nowrap>
+ <form method="post" action="<%= ApplicationController.root_context -%>/profiles/backup/<%= profile.id() -%>" id="backup-<%= key.parameterize -%>-form">
+ <a href="#" class="link-action" name="button_backup" id="backup_<%= u key %>" onclick="$j('#backup-<%= key.parameterize -%>-form').submit();return false;"><%= message('backup_verb') -%></a>
+ </form>
+ </td>
<% if profiles_administrator? %>
- <td align="right" nowrap>
- <form method="post" action="<%= ApplicationController.root_context -%>/profiles/backup/<%= profile.id() -%>" id="backup-<%= key.parameterize -%>-form">
- <a href="#" class="link-action" name="button_backup" id="backup_<%= u key %>" onclick="$j('#backup-<%= key.parameterize -%>-form').submit();return false;"><%= message('backup_verb') -%></a>
- </form>
- </td>
-
<td align="right">
<a id="rename-<%= key.parameterize -%>" href="<%= ApplicationController.root_context -%>/profiles/rename_form/<%= profile.id() -%>" class="link-action open-modal"><%= message('rename') -%></a>
</td>