app/controllers/decidim/votings/admin/polling_stations_controller.rb in decidim-elections-0.24.3 vs app/controllers/decidim/votings/admin/polling_stations_controller.rb in decidim-elections-0.25.0.rc1
- old
+ new
@@ -9,9 +9,13 @@
helper Decidim::Votings::Admin::PollingOfficersPickerHelper
include VotingAdmin
helper_method :current_voting, :polling_station, :filtered_polling_stations
+ def index
+ enforce_permission_to :read, :polling_stations, voting: current_voting
+ end
+
def new
enforce_permission_to :create, :polling_station, voting: current_voting
@form = form(PollingStationForm).instance
end