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