Class: Decidim::Conferences::ConferenceProgramController

Inherits:
ApplicationController show all
Includes:
ParticipatorySpaceContext
Defined in:
app/controllers/decidim/conferences/conference_program_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject

Raises:

  • (ActionController::RoutingError)


13
14
15
16
17
18
# File 'app/controllers/decidim/conferences/conference_program_controller.rb', line 13

def show
  raise ActionController::RoutingError, "No meetings for this conference " if meetings.blank?

  enforce_permission_to :list, :program
  redirect_to decidim_conferences.conference_path(current_participatory_space) unless current_user_can_visit_space?
end