Sha256: 63ae19d9d1ae1a293f8f4e6d04efaf85066b78997c1e4fa88989b5c7f83b5416
Contents?: true
Size: 812 Bytes
Versions: 7
Compression:
Stored size: 812 Bytes
Contents
# frozen_string_literal: true module Decidim module Meetings # Exposes the live event of the meeting class LiveEventsController < Decidim::Meetings::ApplicationController layout "decidim/meetings/layouts/live_event" include Decidim::Meetings::PollsResources helper_method :live_meeting_embed_code def show raise ActionController::RoutingError, "Not Found" unless meeting return if meeting.current_user_can_visit_meeting?(current_user) flash[:alert] = I18n.t("meeting.not_allowed", scope: "decidim.meetings") redirect_to(ResourceLocatorPresenter.new(meeting).index) end private def live_meeting_embed_code MeetingIframeEmbedder.new(meeting.online_meeting_url).embed_code(request.host) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems