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.27.1 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.26.4 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.27.0 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.26.3 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.27.0.rc2 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.27.0.rc1 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.26.2 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.26.1 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.26.0 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.26.0.rc2 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.26.0.rc1 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.25.2 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.25.1 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.25.0 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.25.0.rc4 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.25.0.rc3 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.25.0.rc2 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.25.0.rc1 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.24.3 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb
decidim-elections-0.24.2 app/controllers/decidim/votings/polling_officer_zone/application_controller.rb