Sha256: f21da9daf18be5fbf96789a11004a363ddd782c8356d7161cd576f16bf3bf7ac

Contents?: true

Size: 711 Bytes

Versions: 6

Compression:

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

6 entries across 6 versions & 1 rubygems

Version Path
decidim-decidim_awesome-0.6.4 app/controllers/decidim/decidim_awesome/admin/application_controller.rb
decidim-decidim_awesome-0.6.3 app/controllers/decidim/decidim_awesome/admin/application_controller.rb
decidim-decidim_awesome-0.6.2 app/controllers/decidim/decidim_awesome/admin/application_controller.rb
decidim-decidim_awesome-0.6.1 app/controllers/decidim/decidim_awesome/admin/application_controller.rb
decidim-decidim_awesome-0.6.0 app/controllers/decidim/decidim_awesome/admin/application_controller.rb
decidim-decidim_awesome-0.5.1 app/controllers/decidim/decidim_awesome/admin/application_controller.rb