Class: Decidim::Initiatives::Admin::InitiativesPermissionsController

Inherits:
Admin::ResourcePermissionsController
  • Object
show all
Includes:
Admin::ParticipatorySpaceAdminBreadcrumb, NeedsInitiative
Defined in:
app/controllers/decidim/initiatives/admin/initiatives_permissions_controller.rb

Overview

Controller that allows managing initiatives permissions in the admin panel.

Instance Method Summary collapse

Instance Method Details

#permission_class_chainObject



24
25
26
# File 'app/controllers/decidim/initiatives/admin/initiatives_permissions_controller.rb', line 24

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

#resourceObject



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

def resource
  current_initiative
end