]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3847 The web service /api/profiles/backup should not require administrator...
authorSimon Brandhof <simon.brandhof@gmail.com>
Tue, 2 Oct 2012 14:47:58 +0000 (16:47 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Tue, 2 Oct 2012 14:48:18 +0000 (16:48 +0200)
sonar-server/src/main/webapp/WEB-INF/app/controllers/api/profiles_controller.rb

index 9df4d48838d7fd01d09463cbb978a3bff65c2b3f..906a24457687e8a15627904d4fc88c1292b9835a 100644 (file)
@@ -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=<language>[&name=my_profile] -v
   def backup
-    access_denied unless has_role?(:admin)
     require_parameters :language
 
     if params[:name].blank?