app/views/decidim/proposals/admin/proposals/bulk_actions/_dropdown.html.erb in decidim-proposals-0.28.4 vs app/views/decidim/proposals/admin/proposals/bulk_actions/_dropdown.html.erb in decidim-proposals-0.29.0.rc1

- old
+ new

@@ -40,14 +40,16 @@ <li> <button type="button" data-action="assign-proposals-to-valuator"> <%= t("decidim.proposals.admin.proposals.index.assign_to_valuator") %> </button> </li> - <li> - <button type="button" data-action="unassign-proposals-from-valuator"> - <%= t("decidim.proposals.admin.proposals.index.unassign_from_valuator") %> - </button> - </li> + <% if allowed_to? :unassign_from_valuator, :proposals, valuator: current_user %> + <li> + <button type="button" data-action="unassign-proposals-from-valuator"> + <%= t("decidim.proposals.admin.proposals.index.unassign_from_valuator") %> + </button> + </li> + <% end %> <li> <button type="button" data-action="publish-answers"> <%= t("decidim.proposals.admin.proposals.index.publish_answers") %> </button> </li>