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.24.2 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.23.5 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.24.1 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.24.0 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.24.0.rc2 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.23.4 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.24.0.rc1 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.23.3 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.23.2 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.23.1 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.23.1.rc1 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.23.0 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.22.0 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.21.0 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.20.1 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.20.0 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.19.1 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.18.1 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.19.0 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.18.0 app/controllers/decidim/assemblies/application_controller.rb