Sha256: 87995d520d2d71ec7d01cc72735ccdc16f7bc415d5a2f908e36f427fd256941e

Contents?: true

Size: 780 Bytes

Versions: 44

Compression:

Stored size: 780 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Votings
    module PollingOfficerZone
      # This controller is the abstract class from which all polling_officer_zone
      # controllers in their public engines should inherit from.

      class ApplicationController < ::Decidim::ApplicationController
        include Decidim::UserProfile

        helper_method :polling_officers

        private

        def polling_officers
          @polling_officers ||= Decidim::Votings::PollingOfficer.for(current_user)
        end

        def permission_scope
          :polling_officer_zone
        end

        def permission_class_chain
          [
            Decidim::Votings::Permissions,
            Decidim::Permissions
          ]
        end
      end
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
decidim-elections-0.28.4 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.27.9 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.28.3 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.27.8 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.28.2 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.27.7 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.28.1 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.27.6 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.26.10 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.26.9 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.28.0 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.27.5 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.28.0.rc5 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.28.0.rc4 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.26.8 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.27.4 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.27.3 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.26.7 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.26.5 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.27.2 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb