]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7383 Permission settings do not redirect to login
authorStas Vilchik <vilchiks@gmail.com>
Thu, 14 Apr 2016 08:40:08 +0000 (10:40 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 14 Apr 2016 08:40:14 +0000 (10:40 +0200)
server/sonar-web/src/main/webapp/WEB-INF/app/controllers/roles_controller.rb

index 9a6f420d6636913842ee51fa12c5c4b489b5bce6..e9ade4c22a1c22859e3bb49f336891c1f1d56263 100644 (file)
@@ -22,6 +22,7 @@ class RolesController < ApplicationController
 
   SECTION=Navigation::SECTION_CONFIGURATION
 
+  before_filter :admin_required
   verify :method => :post, :only => [:set_users, :set_groups], :redirect_to => {:action => 'global'}