Sha256: ee17cd0dbd612459ca33a171108bbff6085bea1f91f56e8f5514e22791b6ed65

Contents?: true

Size: 721 Bytes

Versions: 19

Compression:

Stored size: 721 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

      private

      def permissions_context
        super.merge(
          current_participatory_space: try(:current_participatory_space)
        )
      end

      def permission_class_chain
        [
          Decidim::Assemblies::Permissions,
          Decidim::Admin::Permissions,
          Decidim::Permissions
        ]
      end

      def permission_scope
        :public
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
decidim-assemblies-0.17.2 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.17.1 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.16.1 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.17.0 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.16.0 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.15.2 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.15.1 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.15.0 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.14.4 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.14.3 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.14.2 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.14.1 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.13.1 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.12.2 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.13.0 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.12.1 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.13.0.pre1 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.12.0 app/controllers/decidim/assemblies/application_controller.rb
decidim-assemblies-0.12.0.pre app/controllers/decidim/assemblies/application_controller.rb