diff options
| author | Zog | 2018-02-28 16:07:37 +0100 | 
|---|---|---|
| committer | Zog | 2018-02-28 16:07:37 +0100 | 
| commit | ca19188b14b7ab244280541ed53208d8731e06d9 (patch) | |
| tree | 7a30dd15fb95b62c1db94a45d1c2b980951fff4b | |
| parent | 4acb5a53da2995aacc7b6ce2c802ad16fa563bf8 (diff) | |
| download | chouette-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.rb | 2 | 
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 | 
