Class: Decidim::ParticipatoryProcesses::ParticipatoryProcessGroupsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/decidim/participatory_processes/participatory_process_groups_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



11
12
13
# File 'app/controllers/decidim/participatory_processes/participatory_process_groups_controller.rb', line 11

def index
  enforce_permission_to :list, :process_group
end

#showObject



15
16
17
# File 'app/controllers/decidim/participatory_processes/participatory_process_groups_controller.rb', line 15

def show
  enforce_permission_to :read, :process_group, process_group: @group
end