diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-07-07 16:53:34 +0200 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-07-08 12:44:29 +0200 |
commit | 3a27ef32e1d258a82d457d47bf9aed52390565bf (patch) | |
tree | bcf5d86f005deb602b7ddb621755e872e1f34849 /server/sonar-web/src | |
parent | ab609ec8c8b73b833835550d97fe5fe283c6bf44 (diff) | |
download | sonarqube-3a27ef32e1d258a82d457d47bf9aed52390565bf.tar.gz sonarqube-3a27ef32e1d258a82d457d47bf9aed52390565bf.zip |
SONAR-7804 /api/events creates events only on PROJECT
Diffstat (limited to 'server/sonar-web/src')
-rw-r--r-- | server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/events_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/events_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/events_controller.rb index 2f01c8e0ab6..b96323f589c 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/events_controller.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/events_controller.rb @@ -124,7 +124,7 @@ class Api::EventsController < Api::ApiController def create begin load_resource(:admin, params[:resource]) - raise "Resource must be a root project" unless @resource.scope=='PRJ' + raise "Resource must be a root project" unless @resource.scope=='PRJ' && (@resource.qualifier=='TRK' || @resource.qualifier=='VW' || @resource.qualifier=='DEV') analysis=nil if (params[:dateTime]) |