From a956de09fd857e4150a8d19a453f1055af9f24c9 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Thu, 12 May 2016 16:13:21 +0200 Subject: [PATCH] SONAR-7539 WS api/properties should return licenses if user is authenticated (#963) --- .../webapp/WEB-INF/app/controllers/api/properties_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5