spec/internal/app/controllers/application_controller.rb in fcrepo_admin-0.2.3 vs spec/internal/app/controllers/application_controller.rb in fcrepo_admin-0.2.4

- old
+ new

@@ -1,10 +1,13 @@ class ApplicationController < ActionController::Base - # Adds a few additional behaviors into the application controller include Blacklight::Controller - # Please be sure to impelement current_user and user_session. Blacklight depends on - # these methods in order to perform user specific actions. + include Hydra::Controller::ControllerBehavior + include Hydra::PolicyAwareAccessControlsEnforcement + + rescue_from CanCan::AccessDenied do |exception| + render :file => "#{Rails.root}/public/403", :formats => [:html], :status => 403, :layout => false + end layout 'blacklight' protect_from_forgery end