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 /config/routes.rb | |
| parent | 389b10c7ad29f7a7c085d3c361144450ba10fcd5 (diff) | |
| download | chouette-core-5848e03e9655d74cdea84eb66286cf7696ee2ee4.tar.bz2 | |
Refs #3033 : Redirect to 403 page if not authorised
Diffstat (limited to 'config/routes.rb')
| -rw-r--r-- | config/routes.rb | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/config/routes.rb b/config/routes.rb index 5b9cf0ea8..8415d49df 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -213,9 +213,9 @@ ChouetteIhm::Application.routes.draw do    get '/help/(*slug)' => 'help#show' -  match '/404', to: 'errors#not_found', via: :all -  match '/403', to: 'errors#not_allowed', via: :all -  match '/422', to: 'errors#server_error', via: :all -  match '/500', to: 'errors#server_error', via: :all +  match '/404', to: 'errors#not_found', via: :all, as: 'not_found' +  match '/403', to: 'errors#forbidden', via: :all, as: 'forbidden' +  match '/422', to: 'errors#server_error', via: :all, as: 'unprocessable_entity' +  match '/500', to: 'errors#server_error', via: :all, as: 'server_error'  end  | 
