Sha256: a15e5ffbb08f75d8e7d651c65fa6c28d3e0893ff1ad4bb74c1c8dc158686e5ad

Contents?: true

Size: 706 Bytes

Versions: 14

Compression:

Stored size: 706 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module DecidimAwesome
    module Admin
      # This controller is the abstract class from which all other controllers of
      # this engine inherit.
      #
      # Note that it inherits from `Decidim::Admin::Components::BaseController`, which
      # override its layout and provide all kinds of useful methods.
      class ApplicationController < Decidim::Admin::ApplicationController
        def permission_class_chain
          [::Decidim::DecidimAwesome::Admin::Permissions] + super
        end

        before_action do
          enforce_permission_to :update, :organization, organization: current_organization
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
decidim-decidim_awesome-0.10.2 app/controllers/decidim/decidim_awesome/admin/application_controller.rb
decidim-decidim_awesome-0.10.1 app/controllers/decidim/decidim_awesome/admin/application_controller.rb
decidim-decidim_awesome-0.10.0 app/controllers/decidim/decidim_awesome/admin/application_controller.rb
decidim-decidim_awesome-0.9.3 app/controllers/decidim/decidim_awesome/admin/application_controller.rb
decidim-decidim_awesome-0.9.1 app/controllers/decidim/decidim_awesome/admin/application_controller.rb
decidim-decidim_awesome-0.8.3 app/controllers/decidim/decidim_awesome/admin/application_controller.rb
decidim-decidim_awesome-0.8.2 app/controllers/decidim/decidim_awesome/admin/application_controller.rb
decidim-decidim_awesome-0.8.1 app/controllers/decidim/decidim_awesome/admin/application_controller.rb
decidim-decidim_awesome-0.8.0 app/controllers/decidim/decidim_awesome/admin/application_controller.rb
decidim-decidim_awesome-0.7.2 app/controllers/decidim/decidim_awesome/admin/application_controller.rb
decidim-decidim_awesome-0.7.0 app/controllers/decidim/decidim_awesome/admin/application_controller.rb
decidim-decidim_awesome-0.6.7 app/controllers/decidim/decidim_awesome/admin/application_controller.rb
decidim-decidim_awesome-0.6.6 app/controllers/decidim/decidim_awesome/admin/application_controller.rb
decidim-decidim_awesome-0.6.5 app/controllers/decidim/decidim_awesome/admin/application_controller.rb