diff options
| author | Zog | 2018-02-08 16:27:52 +0100 | 
|---|---|---|
| committer | Luc Donnet | 2018-02-21 11:23:28 +0100 | 
| commit | bcb9a2a7e915a1158427e16342dbaa700ce4ee5d (patch) | |
| tree | 80e4134c7242953440c96a907f49c36450bc5d7e /app/controllers/application_controller.rb | |
| parent | 6599a8d6a10e338fed38119115d12a3acb507e1b (diff) | |
| download | chouette-core-bcb9a2a7e915a1158427e16342dbaa700ce4ee5d.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.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..c4961123d 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 | 
