diff options
Diffstat (limited to 'sonar-server/src/main/webapp/WEB-INF/app/controllers/plugins/configuration_controller.rb')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/controllers/plugins/configuration_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/plugins/configuration_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/plugins/configuration_controller.rb index f5ea76a519d..5160ea28c8f 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/plugins/configuration_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/plugins/configuration_controller.rb @@ -25,6 +25,8 @@ class Plugins::ConfigurationController < ApplicationController page_id=params[:page] @page_proxy=java_facade.getPage(page_id) + return redirect_to(home_path) unless @page_proxy + authorized=@page_proxy.getUserRoles().size==0 unless authorized @page_proxy.getUserRoles().each do |role| |