Sha256: 2b579b8bb626bf01caf1026cb5f353fc8b9a3d693016bf0d1626cc2a67a73b08

Contents?: true

Size: 590 Bytes

Versions: 6

Compression:

Stored size: 590 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Votings
    module PollingOfficerZone
      # Space to manage the elections for a Polling Station Officer
      class PollingStationsController < Decidim::Votings::PollingOfficerZone::ApplicationController
        helper_method :polling_station

        def show
          enforce_permission_to :view, :polling_station, polling_officers: polling_officers
        end

        private

        def polling_station
          @polling_station ||= Decidim::Votings::PollingStation.find(params[:id])
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-elections-0.24.3 app/controllers/decidim/votings/polling_officer_zone/polling_stations_controller.rb
decidim-elections-0.24.2 app/controllers/decidim/votings/polling_officer_zone/polling_stations_controller.rb
decidim-elections-0.24.1 app/controllers/decidim/votings/polling_officer_zone/polling_stations_controller.rb
decidim-elections-0.24.0 app/controllers/decidim/votings/polling_officer_zone/polling_stations_controller.rb
decidim-elections-0.24.0.rc2 app/controllers/decidim/votings/polling_officer_zone/polling_stations_controller.rb
decidim-elections-0.24.0.rc1 app/controllers/decidim/votings/polling_officer_zone/polling_stations_controller.rb