|
|
@ -29,7 +29,7 @@ class Users::RecordsController < UsersController |
|
|
|
security_method: :a_record?, type: :member, position: false, confirm: 'Are you sure?' |
|
|
|
security_method: :a_record?, type: :member, position: false, confirm: 'Are you sure?' |
|
|
|
end |
|
|
|
end |
|
|
|
include RecordsControllerCommon |
|
|
|
include RecordsControllerCommon |
|
|
|
with_options(:only => 'modify') do |c| |
|
|
|
with_options(:only => :modify) do |c| |
|
|
|
c.skip_before_filter :ensure_nested_under_domain |
|
|
|
c.skip_before_filter :ensure_nested_under_domain |
|
|
|
c.skip_before_filter :authenticate_user! |
|
|
|
c.skip_before_filter :authenticate_user! |
|
|
|
c.skip_before_filter :set_user_current |
|
|
|
c.skip_before_filter :set_user_current |
|
|
@ -46,9 +46,7 @@ class Users::RecordsController < UsersController |
|
|
|
return render(:text => MODIFY_ERROR) if @record.type != 'A' |
|
|
|
return render(:text => MODIFY_ERROR) if @record.type != 'A' |
|
|
|
@record.content = params[:ip] || client_remote_ip |
|
|
|
@record.content = params[:ip] || client_remote_ip |
|
|
|
@record.save! |
|
|
|
@record.save! |
|
|
|
respond_with(@record) do |format| |
|
|
|
render(:text => MODIFY_OK) |
|
|
|
format.html {render(:text => MODIFY_OK)} |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
protected |
|
|
|
protected |
|
|
|