diff options
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/controllers/settings_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/settings_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/settings_controller.rb index e7f95603788..854c5f746db 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/settings_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/settings_controller.rb @@ -32,6 +32,8 @@ class SettingsController < ApplicationController project=Project.by_key(params[:resource_id]) return access_denied unless is_admin?(project) resource_id=project.id + else + return access_denied unless is_admin? end plugins = java_facade.getPluginsMetadata() |