aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-12-08 09:33:10 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-12-08 09:33:10 +0000
commit7e65399cc2b3fc91bfd14af6f8979bf9db9a83be (patch)
treee13d58a95f6861f039ce535340742ceb0d37a76c /sonar-server
parent7dcedeabbe571de8121a598609c82423bbc8024c (diff)
downloadsonarqube-7e65399cc2b3fc91bfd14af6f8979bf9db9a83be.tar.gz
sonarqube-7e65399cc2b3fc91bfd14af6f8979bf9db9a83be.zip
SONAR-2039 Allow non-admin users to backup quality profiles
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb
index 0e097d5ef7f..eb0235793aa 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb
@@ -20,8 +20,10 @@
class ProfilesController < ApplicationController
SECTION=Navigation::SECTION_CONFIGURATION
- verify :method => :post, :only => ['create', 'delete', 'copy', 'set_as_default', 'restore', 'backup', 'set_projects', 'rename'], :redirect_to => { :action => 'index' }
- before_filter :admin_required, :except => [ 'index', 'show', 'projects', 'permalinks', 'export' ]
+ verify :method => :post, :only => ['create', 'delete', 'copy', 'set_as_default', 'restore', 'set_projects', 'rename'], :redirect_to => { :action => 'index' }
+
+ # the backup action is allow to non-admin users : see http://jira.codehaus.org/browse/SONAR-2039
+ before_filter :admin_required, :except => [ 'index', 'show', 'projects', 'permalinks', 'export', 'backup' ]
#
#