diff options
author | Jean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com> | 2013-06-20 17:40:56 +0200 |
---|---|---|
committer | Jean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com> | 2013-06-20 17:40:56 +0200 |
commit | 3207a389ee843d30591cc806ac2de9f24f7fd756 (patch) | |
tree | fae145470e778b6f96efcb49ce70e38d072f9cbc /sonar-server | |
parent | f699d4683bfb31f0cd95d277cde92b4edaa3995f (diff) | |
download | sonarqube-3207a389ee843d30591cc806ac2de9f24f7fd756.tar.gz sonarqube-3207a389ee843d30591cc806ac2de9f24f7fd756.zip |
SONAR-4411 Added new user management operations in WS client
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/controllers/dashboards_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/dashboards_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/dashboards_controller.rb index faee218f71c..ed206bab77c 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/dashboards_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/dashboards_controller.rb @@ -76,7 +76,7 @@ class DashboardsController < ApplicationController if @dashboard.editable_by?(current_user) render :partial => 'edit_form', :resource => params[:resource] else - redirect_to :action => 'index', :resource => params[:resource], :status => 401 + access_denied end end @@ -91,7 +91,7 @@ class DashboardsController < ApplicationController render :partial => 'dashboards/edit_form', :status => 400, :resource => params[:resource] end else - render :text => @dashboard.id.to_s, :resource => params[:resource], :status => 401 + access_denied end end |