aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-05-12 16:13:21 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-05-12 16:13:21 +0200
commita956de09fd857e4150a8d19a453f1055af9f24c9 (patch)
tree2b94b826665d46b351e655921bb813fc909eb312 /server
parent983beea417c9ffb0561857d0b7e69a97dfadc91d (diff)
downloadsonarqube-a956de09fd857e4150a8d19a453f1055af9f24c9.tar.gz
sonarqube-a956de09fd857e4150a8d19a453f1055af9f24c9.zip
SONAR-7539 WS api/properties should return licenses if user is authenticated (#963)
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/properties_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/properties_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/properties_controller.rb
index 45c9558585e..0c69c45098a 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/properties_controller.rb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/properties_controller.rb
@@ -156,7 +156,7 @@ class Api::PropertiesController < Api::ApiController
end
def allowed?(property_key)
- !property_key.end_with?('.secured') || is_admin?
+ !property_key.end_with?('.secured') || is_admin? || (property_key.include?(".license") && logged_in?)
end
def get_default_property(key)