aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorZog2018-02-08 16:27:52 +0100
committerZog2018-02-08 16:27:52 +0100
commit5b47e5e780a6d9cf8e94a8621723aa81e6dd0588 (patch)
treec004ae933603a42d3401c9658737fa16c0284be4 /app/controllers/application_controller.rb
parente07ef0eb9dac728ee5033b42c318692e2368b897 (diff)
downloadchouette-core-5b47e5e780a6d9cf8e94a8621723aa81e6dd0588.tar.bz2
Refs #5865 @1h; Ensure user is allowed to duplicate a referential before doing so
I also changed the way 403 errors are handled, to properly respond with a 403 HTTP code
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 8bd3da2f9..c5ecc505a 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -28,7 +28,7 @@ class ApplicationController < ActionController::Base
protected
def user_not_authorized
- redirect_to forbidden_path
+ render 'errors/forbidden', status: 403
end
def current_organisation