app/controllers/decidim/conferences/admin/conferences_controller.rb in decidim-conferences-0.15.2 vs app/controllers/decidim/conferences/admin/conferences_controller.rb in decidim-conferences-0.16.0

- old
+ new

@@ -60,18 +60,9 @@ render :edit, layout: "decidim/admin/conference" end end end - def destroy - enforce_permission_to :destroy, :conference, conference: current_conference - current_conference.destroy! - - flash[:notice] = I18n.t("conferences.destroy.success", scope: "decidim.admin") - - redirect_to conferences_path - end - def copy enforce_permission_to :create, :conference end private