X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a792b74bea261834791e9f75c64161436d37053f..f881a8c83c54da98e5c3058a48a1cde952b1be8a:/app/controllers/application_controller.rb diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 616223a06..f305e14d7 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -3,6 +3,8 @@ class ApplicationController < ActionController::Base protect_from_forgery :with => :exception + add_flash_types :warning, :error + rescue_from CanCan::AccessDenied, :with => :deny_access check_authorization