Sha256: e797c216e3e3158adf0a5685318ada0ad31075b0b1bf151751a16e9c266303cf
Contents?: true
Size: 723 Bytes
Versions: 1
Compression:
Stored size: 723 Bytes
Contents
# frozen_string_literal: true module Decidim module Posts 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::Components::BaseController def permission_class_chain [::Decidim::Posts::Admin::Permissions] + super end def user_not_authorized_path decidim.root_path end def user_has_no_permission_path decidim.root_path end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
decidim-posts-1.0.0 | app/controllers/decidim/posts/admin/application_controller.rb |