Sha256: 2e39e42961726210d3f263eaa18886806d7055c25b26f7ca4c9e3e442863ac02

Contents?: true

Size: 578 Bytes

Versions: 7

Compression:

Stored size: 578 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Conferences
    module Admin
      # The main admin application controller for conferences
      class ApplicationController < Decidim::Admin::ApplicationController
        private

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-conferences-0.17.2 app/controllers/decidim/conferences/admin/application_controller.rb
decidim-conferences-0.17.1 app/controllers/decidim/conferences/admin/application_controller.rb
decidim-conferences-0.16.1 app/controllers/decidim/conferences/admin/application_controller.rb
decidim-conferences-0.17.0 app/controllers/decidim/conferences/admin/application_controller.rb
decidim-conferences-0.16.0 app/controllers/decidim/conferences/admin/application_controller.rb
decidim-conferences-0.15.2 app/controllers/decidim/conferences/admin/application_controller.rb
decidim-conferences-0.15.1 app/controllers/decidim/conferences/admin/application_controller.rb