Sha256: c23332f5746a7a41668050e59d4f6ed4d83ebcfb24cd4fc87b29d9dec6049211
Contents?: true
Size: 979 Bytes
Versions: 13
Compression:
Stored size: 979 Bytes
Contents
# frozen_string_literal: true module Decidim module Initiatives module Admin # Controller that allows managing initiatives # permissions in the admin panel. class InitiativesPermissionsController < Decidim::Admin::ResourcePermissionsController include Decidim::Initiatives::NeedsInitiative include Decidim::Admin::ParticipatorySpaceAdminBreadcrumb add_breadcrumb_item_from_menu :admin_initiative_actions_menu layout "decidim/admin/initiatives" register_permissions(::Decidim::Initiatives::Admin::InitiativesPermissionsController, ::Decidim::Initiatives::Permissions, ::Decidim::Admin::Permissions) def resource current_initiative end def permission_class_chain ::Decidim.permissions_registry.chain_for(::Decidim::Initiatives::Admin::InitiativesPermissionsController) end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems