diff options
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/application_controller.rb | 2 | ||||
| -rw-r--r-- | app/controllers/errors_controller.rb | 2 |
2 files changed, 2 insertions, 2 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 diff --git a/app/controllers/errors_controller.rb b/app/controllers/errors_controller.rb index 94e0d7b4c..252b8fdfa 100644 --- a/app/controllers/errors_controller.rb +++ b/app/controllers/errors_controller.rb @@ -7,7 +7,7 @@ class ErrorsController < ApplicationController render status: 500 end - def not_allowed + def forbidden render status: 403 end end |
