Sha256: 820df424098e6ca91901ee3645b2c1de1db4cbfbe38243af3277d3c7474d88db

Contents?: true

Size: 773 Bytes

Versions: 66

Compression:

Stored size: 773 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Assemblies
    module Admin
      # The main admin application controller for assemblies
      class ApplicationController < Decidim::Admin::ApplicationController
        register_permissions(::Decidim::Assemblies::Admin::ApplicationController,
                             Decidim::Assemblies::Permissions,
                             Decidim::Admin::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::Admin::ApplicationController)
        end
      end
    end
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
decidim-assemblies-0.25.0.rc4 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.25.0.rc3 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.25.0.rc2 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.25.0.rc1 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.24.3 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.23.6 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.24.2 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.23.5 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.24.1 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.24.0 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.24.0.rc2 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.23.4 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.24.0.rc1 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.23.3 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.23.2 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.23.1 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.23.1.rc1 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.23.0 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.22.0 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.21.0 app/controllers/decidim/assemblies/admin/application_controller.rb