mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
Add registrar dashboard #2713
This commit is contained in:
parent
ae29585ae2
commit
27f37b9ec4
11 changed files with 100 additions and 64 deletions
|
@ -1,10 +1,10 @@
|
|||
class Registrar::XmlConsolesController < Registrar::DeppController # EPP controller
|
||||
authorize_resource class: false
|
||||
|
||||
def show
|
||||
authorize! :view, :registrar_xml_console
|
||||
end
|
||||
|
||||
def create
|
||||
authorize! :create, :registrar_xml_console
|
||||
begin
|
||||
@result = depp_current_user.server.request(params[:payload])
|
||||
rescue
|
||||
|
@ -14,7 +14,6 @@ class Registrar::XmlConsolesController < Registrar::DeppController # EPP control
|
|||
end
|
||||
|
||||
def load_xml
|
||||
authorize! :create, :registrar_xml_console
|
||||
cl_trid = "#{depp_current_user.tag}-#{Time.zone.now.to_i}"
|
||||
xml_dir_path = Rails.root + 'app/views/registrar/xml_consoles/epp_requests'
|
||||
xml = File.read("#{xml_dir_path}/#{params[:obj]}/#{params[:epp_action]}.xml")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue