diff --git a/app/controllers/admin/boxes/fs_boxes_controller.rb b/app/controllers/admin/boxes/fs_boxes_controller.rb index efb94083d..ac7607a58 100644 --- a/app/controllers/admin/boxes/fs_boxes_controller.rb +++ b/app/controllers/admin/boxes/fs_boxes_controller.rb @@ -1,19 +1,4 @@ class Admin::Boxes::FsBoxesController < Admin::BoxesController - def new - @box = Current.tenant.boxes.new(type: "Fs::Box") - authorize([:admin, @box]) - end - - def create - @box = Current.tenant.boxes.new(type: "Fs::Box", uri: "dic://sk/#{box_params.require(:settings_dic)}", **box_params) - authorize([:admin, @box]) - if @box.save! - redirect_to admin_tenant_boxes_url(Current.tenant), notice: "Box was successfully created." - else - render :new, status: :unprocessable_entity - end - end - def update authorize([:admin, @box]) if @box.update(uri: "dic://sk/#{box_params.require(:settings_dic)}", **box_params) diff --git a/app/views/admin/boxes/index.html.erb b/app/views/admin/boxes/index.html.erb index 753cf9cc7..a6c7fb1fb 100644 --- a/app/views/admin/boxes/index.html.erb +++ b/app/views/admin/boxes/index.html.erb @@ -37,11 +37,6 @@
Pripojiť novú schránku
- <% end %> - <% end %>