aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZog2018-02-28 16:07:37 +0100
committerZog2018-02-28 16:07:37 +0100
commitca19188b14b7ab244280541ed53208d8731e06d9 (patch)
tree7a30dd15fb95b62c1db94a45d1c2b980951fff4b
parent4acb5a53da2995aacc7b6ce2c802ad16fa563bf8 (diff)
downloadchouette-core-fix_http_errors.tar.bz2
Fix the way HTTP errors are handledfix_http_errors
Respond with an actual HTTP code, not a redirect
-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 45b7f55f6..a7173ced8 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: :forbidden
end
def current_organisation