From 360e945ed6e38e5f78f57198a02aedd80cc82a67 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Fri, 24 May 2013 13:13:21 -0700 Subject: [PATCH] fixes #1656 --- app/controllers/application_controller.rb | 2 +- app/controllers/dmails_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 989beb816..960c2935f 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -51,7 +51,7 @@ protected render :template => "static/error", :status => 410 end - def access_denied + def access_denied(exception = nil) previous_url = params[:url] || request.fullpath respond_to do |fmt| diff --git a/app/controllers/dmails_controller.rb b/app/controllers/dmails_controller.rb index 19231a5af..480adddf5 100644 --- a/app/controllers/dmails_controller.rb +++ b/app/controllers/dmails_controller.rb @@ -1,7 +1,7 @@ class DmailsController < ApplicationController respond_to :html, :xml, :json before_filter :member_only - rescue_from User::PrivilegeError, :with => "static/access_denied" + rescue_from User::PrivilegeError, :with => :access_denied def new if params[:respond_to_id]