X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fcontrollers%2Fapplication_controller.rb;fp=app%2Fcontrollers%2Fapplication_controller.rb;h=e3f768645e37ca84592ed5ece75b7dd4b8cf4804;hb=971aa889f98938cf0e0e5ce2a7e0552e65b7c215;hp=5c1215b4f5fd289136907b9df13c88d10536f4fa;hpb=cdc1dfb1e77e999f9b2233c86193a913a9158824;p=redminele%2Fredmine.git diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 5c1215b4..e3f76864 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -18,6 +18,8 @@ require 'uri' require 'cgi' +class Unauthorized < Exception; end + class ApplicationController < ActionController::Base include Redmine::I18n @@ -41,6 +43,7 @@ class ApplicationController < ActionController::Base protect_from_forgery rescue_from ActionController::InvalidAuthenticityToken, :with => :invalid_authenticity_token + rescue_from ::Unauthorized, :with => :deny_access include Redmine::Search::Controller include Redmine::MenuManager::MenuController