Sha256: 2d44ecd93b2635dc03cfdcb524bdf9a766f5a1a06635febdd15e668b6fa2d48a

Contents?: true

Size: 926 Bytes

Versions: 60

Compression:

Stored size: 926 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Assemblies
    # The main admin application controller for assemblies
    class ApplicationController < Decidim::ApplicationController
      helper Decidim::ApplicationHelper
      helper Decidim::Assemblies::AssembliesHelper
      include NeedsPermission

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

      private

      def permissions_context
        super.merge(
          current_participatory_space: try(:current_participatory_space)
        )
      end

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

      def permission_scope
        :public
      end
    end
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

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