diff options
| author | Vlatka Pavisic | 2017-04-25 16:00:32 +0200 | 
|---|---|---|
| committer | Vlatka Pavisic | 2017-04-25 16:00:41 +0200 | 
| commit | 5848e03e9655d74cdea84eb66286cf7696ee2ee4 (patch) | |
| tree | 2ad273711ec9e3447bac1e5dfc80b8143de8e20f /app/controllers/application_controller.rb | |
| parent | 389b10c7ad29f7a7c085d3c361144450ba10fcd5 (diff) | |
| download | chouette-core-5848e03e9655d74cdea84eb66286cf7696ee2ee4.tar.bz2 | |
Refs #3033 : Redirect to 403 page if not authorised
Diffstat (limited to 'app/controllers/application_controller.rb')
| -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 2bdf8078a..f2c9b4c6f 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -22,7 +22,7 @@ class ApplicationController < ActionController::Base    protected    def user_not_authorized -    render :file => "#{Rails.root}/public/403.html", :status => :forbidden, :layout => false +    redirect_to forbidden_path    end    def current_organisation | 
