aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2012-03-30 08:44:54 +0200
committerFabrice Bellingard <bellingard@gmail.com>2012-03-30 08:44:54 +0200
commit8274bbf9c85bda410dc7dcb8612cba59ec8d30cc (patch)
tree215fc86fde9f275a6ab5f8914520c38d276fea27 /sonar-server
parent8cfdd367117f5ee3a8f24e3ed3330a92569a2135 (diff)
downloadsonarqube-8274bbf9c85bda410dc7dcb8612cba59ec8d30cc.tar.gz
sonarqube-8274bbf9c85bda410dc7dcb8612cba59ec8d30cc.zip
SONAR-3287 Keep previous behaviour on web service
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/controllers/api/projects_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/projects_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/projects_controller.rb
index a6082845899..9219ac3de0b 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/projects_controller.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/projects_controller.rb
@@ -61,6 +61,7 @@ class Api::ProjectsController < Api::ApiController
project = Project.by_key(params[:id])
bad_request("Not valid project") unless project
access_denied unless is_admin?(project)
+ bad_request("Not valid project") unless java_facade.getResourceTypeBooleanProperty(project.qualifier, 'deletable')
Project.delete_resource_tree(project)
render_success("Project deleted")