app/views/decidim/consultations/admin/questions/edit.html.erb in decidim-consultations-0.11.2 vs app/views/decidim/consultations/admin/questions/edit.html.erb in decidim-consultations-0.12.0.pre

- old
+ new

@@ -5,11 +5,11 @@ <div class="button--double form-general-submit"> <%= f.submit t("questions.edit.update", scope: "decidim.admin"), class: "button", data: { disable_with: true } %> - <% if can? :publish, current_question %> + <% if allowed_to? :publish, :question, question: current_question %> <% if current_question.published? %> <%= link_to t("actions.unpublish", scope: "decidim.admin"), question_publish_path(current_question), method: :delete, class: "button muted" %> @@ -19,10 +19,10 @@ method: :post, class: "button hollow" %> <% end %> <% end %> - <% if can? :destroy, current_question %> + <% if allowed_to? :destroy, :question, question: current_question %> <%= link_to t("decidim.admin.actions.destroy"), question_path(current_question), method: :delete, class: "alert button", data: { confirm: t("decidim.admin.actions.confirm_destroy") } %>