Sha256: ad62b83aa8e812a90b4b3f4fe725c631528b03f8c1295701a933ecfc10c8c465

Contents?: true

Size: 746 Bytes

Versions: 53

Compression:

Stored size: 746 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Initiatives
    module Admin
      # Controller that allows managing initiatives types
      # permissions in the admin panel.
      class InitiativesTypesPermissionsController < Decidim::Admin::ResourcePermissionsController
        layout "decidim/admin/initiatives"

        register_permissions(::Decidim::Initiatives::Admin::InitiativesTypesPermissionsController,
                             ::Decidim::Initiatives::Permissions,
                             ::Decidim::Admin::Permissions)

        def permission_class_chain
          ::Decidim.permissions_registry.chain_for(::Decidim::Initiatives::Admin::InitiativesTypesPermissionsController)
        end
      end
    end
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

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