Sha256: 00b03c3230b4d76314fc6facb4a4a9f119c02c00b74aeecabfc213ebdf5f33b8

Contents?: true

Size: 890 Bytes

Versions: 60

Compression:

Stored size: 890 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ParticipatoryProcesses
    # This controller is the abstract class from which all other controllers of
    # this engine inherit.
    class ApplicationController < Decidim::ApplicationController
      helper Decidim::ParticipatoryProcesses::ApplicationHelper
      helper ParticipatoryProcessHelper
      include NeedsPermission

      register_permissions(Decidim::ParticipatoryProcesses::ApplicationController,
                           ::Decidim::ParticipatoryProcesses::Permissions,
                           ::Decidim::Admin::Permissions,
                           ::Decidim::Permissions)

      private

      def permission_class_chain
        ::Decidim.permissions_registry.chain_for(::Decidim::ParticipatoryProcesses::ApplicationController)
      end

      def permission_scope
        :public
      end
    end
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

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