Sha256: 0f8512ed82d1f06796deb974bf6c4f405f59447c4a76f2cabed10091768ef99e

Contents?: true

Size: 497 Bytes

Versions: 6

Compression:

Stored size: 497 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Votings
    module PollingOfficerZone
      # Exposes the polling officer zone for polling officer users
      class PollingOfficersController < Decidim::Votings::PollingOfficerZone::ApplicationController
        helper Decidim::Admin::IconLinkHelper
        helper_method :polling_stations

        def show
          enforce_permission_to :view, :polling_officers, polling_officers: polling_officers
        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_officers_controller.rb
decidim-elections-0.24.2 app/controllers/decidim/votings/polling_officer_zone/polling_officers_controller.rb
decidim-elections-0.24.1 app/controllers/decidim/votings/polling_officer_zone/polling_officers_controller.rb
decidim-elections-0.24.0 app/controllers/decidim/votings/polling_officer_zone/polling_officers_controller.rb
decidim-elections-0.24.0.rc2 app/controllers/decidim/votings/polling_officer_zone/polling_officers_controller.rb
decidim-elections-0.24.0.rc1 app/controllers/decidim/votings/polling_officer_zone/polling_officers_controller.rb