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.29.1 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.28.4 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.27.9 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.29.0 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.28.3 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.27.8 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.29.0.rc4 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.29.0.rc3 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.29.0.rc2 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.29.0.rc1 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.28.2 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.27.7 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.28.1 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.27.6 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.26.10 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.26.9 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.28.0 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.27.5 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.28.0.rc5 app/controllers/decidim/assemblies/admin/application_controller.rb
decidim-assemblies-0.28.0.rc4 app/controllers/decidim/assemblies/admin/application_controller.rb