Added missing abilities to xml_console and contacts controllers

This commit is contained in:
Sergei Tsoganov 2022-12-09 11:27:42 +02:00
parent e971638938
commit e7a976ce89
3 changed files with 7 additions and 0 deletions

View file

@ -6,6 +6,7 @@ module EppRequestable
end
def create
authorize! :create, Epp::Server
result = server.request(request_params[:payload])
render_success(data: { xml: result.force_encoding('UTF-8') })
rescue StandardError