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