GDI...typo.

This commit is contained in:
Michael Ball 2020-07-29 22:42:45 -07:00
parent deb249d2fd
commit 32ef4a294b
2 changed files with 11 additions and 1 deletions

View file

@ -177,7 +177,8 @@ module EventsHelper
return unless event.url.present? && current_user
conference = event.conference
is_today = event.time&.in_time_zone(c.timezone).to_date == conference.current_conference_day
is_today = event.time&.in_time_zone(conference.timezone).to_date
== conference.current_conference_day
if current_user.roles.where(id: conference.roles).any?
# Show Pre-Event links for any memeber of the conference team.

View file

@ -27,6 +27,15 @@ class EventSchedule < ApplicationRecord
delegate :guid, to: :room, prefix: true
delegate :timezone, to: event
##
# True within 1 hour before and after the event.
#
def happening_now?(threshold=1.hour)
false
end
def self.withdrawn_or_canceled_event_schedules(schedule_ids)
EventSchedule
.unscoped