Sha256: ed59d085e6493bbf366fb40c44762304be55c0d853a946fde255fbaa80e6422b

Contents?: true

Size: 727 Bytes

Versions: 53

Compression:

Stored size: 727 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Consultations
    # A controller that holds the logic to show consultations in a
    # public layout.
    class ApplicationController < Decidim::ApplicationController
      include NeedsPermission

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

      private

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

      def permission_scope
        :public
      end
    end
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
decidim-consultations-0.27.9 app/controllers/decidim/consultations/application_controller.rb
decidim-consultations-0.27.8 app/controllers/decidim/consultations/application_controller.rb
decidim-consultations-0.27.7 app/controllers/decidim/consultations/application_controller.rb
decidim-consultations-0.27.6 app/controllers/decidim/consultations/application_controller.rb
decidim-consultations-0.26.10 app/controllers/decidim/consultations/application_controller.rb
decidim-consultations-0.26.9 app/controllers/decidim/consultations/application_controller.rb
decidim-consultations-0.27.5 app/controllers/decidim/consultations/application_controller.rb
decidim-consultations-0.26.8 app/controllers/decidim/consultations/application_controller.rb
decidim-consultations-0.27.4 app/controllers/decidim/consultations/application_controller.rb
decidim-consultations-0.27.3 app/controllers/decidim/consultations/application_controller.rb
decidim-consultations-0.26.7 app/controllers/decidim/consultations/application_controller.rb
decidim-consultations-0.26.5 app/controllers/decidim/consultations/application_controller.rb
decidim-consultations-0.27.2 app/controllers/decidim/consultations/application_controller.rb
decidim-consultations-0.27.1 app/controllers/decidim/consultations/application_controller.rb
decidim-consultations-0.26.4 app/controllers/decidim/consultations/application_controller.rb
decidim-consultations-0.27.0 app/controllers/decidim/consultations/application_controller.rb
decidim-consultations-0.26.3 app/controllers/decidim/consultations/application_controller.rb
decidim-consultations-0.27.0.rc2 app/controllers/decidim/consultations/application_controller.rb
decidim-consultations-0.27.0.rc1 app/controllers/decidim/consultations/application_controller.rb
decidim-consultations-0.26.2 app/controllers/decidim/consultations/application_controller.rb