fixes #1656
This commit is contained in:
@@ -51,7 +51,7 @@ protected
|
|||||||
render :template => "static/error", :status => 410
|
render :template => "static/error", :status => 410
|
||||||
end
|
end
|
||||||
|
|
||||||
def access_denied
|
def access_denied(exception = nil)
|
||||||
previous_url = params[:url] || request.fullpath
|
previous_url = params[:url] || request.fullpath
|
||||||
|
|
||||||
respond_to do |fmt|
|
respond_to do |fmt|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
class DmailsController < ApplicationController
|
class DmailsController < ApplicationController
|
||||||
respond_to :html, :xml, :json
|
respond_to :html, :xml, :json
|
||||||
before_filter :member_only
|
before_filter :member_only
|
||||||
rescue_from User::PrivilegeError, :with => "static/access_denied"
|
rescue_from User::PrivilegeError, :with => :access_denied
|
||||||
|
|
||||||
def new
|
def new
|
||||||
if params[:respond_to_id]
|
if params[:respond_to_id]
|
||||||
|
|||||||
Reference in New Issue
Block a user