fixes #1656
This commit is contained in:
@@ -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|
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user