From 5848e03e9655d74cdea84eb66286cf7696ee2ee4 Mon Sep 17 00:00:00 2001 From: Vlatka Pavisic Date: Tue, 25 Apr 2017 16:00:32 +0200 Subject: Refs #3033 : Redirect to 403 page if not authorised --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/application_controller.rb') 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 -- cgit v1.2.3