app/controllers/decidim/elections/admin/questions_controller.rb in decidim-elections-0.26.1 vs app/controllers/decidim/elections/admin/questions_controller.rb in decidim-elections-0.26.2

- old
+ new

@@ -24,9 +24,14 @@ on(:invalid) do flash.now[:alert] = I18n.t("questions.create.invalid", scope: "decidim.elections.admin") render action: "new" end + + on(:election_started) do + flash.now[:alert] = I18n.t("questions.create.election_started", scope: "decidim.elections.admin") + render action: "new" + end end end def edit enforce_permission_to :update, :question, election: election, question: question