Sha256: 5c74927a2564de2847965025002600c424219bc46a40773c69989028677bc2f3

Contents?: true

Size: 966 Bytes

Versions: 53

Compression:

Stored size: 966 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Conferences
    # The main admin application controller for conferences
    class ApplicationController < Decidim::ApplicationController
      helper Decidim::ApplicationHelper
      helper Decidim::ResourceHelper
      helper Decidim::Conferences::ConferenceHelper

      include NeedsPermission

      register_permissions(::Decidim::Conferences::ApplicationController,
                           Decidim::Conferences::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::Conferences::ApplicationController)
      end

      def permission_scope
        :public
      end
    end
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

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