app/controllers/decidim/admin/moderations_controller.rb in decidim-admin-0.9.3 vs app/controllers/decidim/admin/moderations_controller.rb in decidim-admin-0.10.0
- old
+ new
@@ -11,11 +11,11 @@
end
def unreport
authorize! :unreport, reportable
- Admin::UnreportResource.call(reportable) do
+ Admin::UnreportResource.call(reportable, current_user) do
on(:ok) do
flash[:notice] = I18n.t("reportable.unreport.success", scope: "decidim.moderations.admin")
redirect_to moderations_path
end
@@ -27,10 +27,10 @@
end
def hide
authorize! :hide, reportable
- Admin::HideResource.call(reportable) do
+ Admin::HideResource.call(reportable, current_user) do
on(:ok) do
flash[:notice] = I18n.t("reportable.hide.success", scope: "decidim.moderations.admin")
redirect_to moderations_path
end