Class: Decidim::Initiatives::Admin::ApplicationController

Inherits:
Admin::ApplicationController show all
Defined in:
decidim-initiatives/app/controllers/decidim/initiatives/admin/application_controller.rb

Overview

The main admin application controller for initiatives

Instance Method Summary collapse

Methods inherited from Admin::ApplicationController

#permission_scope, #user_has_no_permission_path, #user_not_authorized_path

Methods included from HttpCachingDisabler

#disable_http_caching

Methods included from NeedsSnippets

#snippets

Methods included from RegistersPermissions

register_permissions

Methods included from NeedsOrganization

enhance_controller, extended, included

Instance Method Details

#permission_class_chainObject


20
21
22
# File 'decidim-initiatives/app/controllers/decidim/initiatives/admin/application_controller.rb', line 20

def permission_class_chain
  ::Decidim.permissions_registry.chain_for(::Decidim::Initiatives::Admin::ApplicationController)
end

#permissions_contextObject


14
15
16
17
18
# File 'decidim-initiatives/app/controllers/decidim/initiatives/admin/application_controller.rb', line 14

def permissions_context
  super.merge(
    current_participatory_space: try(:current_participatory_space)
  )
end