app/controllers/decidim/votings/admin/ballot_styles_controller.rb in decidim-elections-0.25.2 vs app/controllers/decidim/votings/admin/ballot_styles_controller.rb in decidim-elections-0.26.0.rc1
- old
+ new
@@ -58,10 +58,10 @@
end
def destroy
enforce_permission_to :delete, :ballot_style, ballot_style: current_ballot_style, voting: current_voting
- DestroyBallotStyle.call(current_ballot_style) do
+ DestroyBallotStyle.call(current_ballot_style, current_user) do
on(:ok) do
flash[:notice] = t("destroy.success", scope: "decidim.votings.admin.ballot_styles")
end
on(:invalid) do