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