From: Simon Brandhof Date: Tue, 2 Oct 2012 14:47:58 +0000 (+0200) Subject: SONAR-3847 The web service /api/profiles/backup should not require administrator... X-Git-Tag: 3.3~142 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f9b3ab5232378f22a5cd37325c3c85c68984f630;p=sonarqube.git SONAR-3847 The web service /api/profiles/backup should not require administrator right --- diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/profiles_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/profiles_controller.rb index 9df4d48838d..906a2445768 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/profiles_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/profiles_controller.rb @@ -105,7 +105,6 @@ class Api::ProfilesController < Api::ApiController # Backup a profile. If output format is xml, then backup is directly returned. # GET /api/profiles/backup?language=[&name=my_profile] -v def backup - access_denied unless has_role?(:admin) require_parameters :language if params[:name].blank?