app/controllers/check_in_controller.rb
# Check an attendee for all the requirements to check in
Check an attendee for all the requirements to check in
Check an attendee for all the requirements to check in
def cleared_to_check_in(attendee)
    cleared = true
    if (attendee.user.balance > 0)
      cleared = false
    end
    if attendee.in_tournament?
      if (!attendee.aga_id)
        cleared = false
      end
    end
    if (attendee.minor?)
      cleared = attendee.minor_agreement_received;
    end
    cleared
  end
def cleared_to_check_in ( attendee ) cleared = true if ( attendee . user . balance > 0 ) cleared = false end if attendee . in_tournament? if ( ! attendee . aga_id ) cleared = false end end if ( attendee . minor? ) cleared = attendee . minor_agreement_received ; end cleared end
Check an attendee for all the requirements to check in
Check an attendee for all the requirements to check in
# Presume success, then check for failures # Check for outstanding balance # Check for AGA ID # TODO Check for validity? # Check for current AGA Membership # Deactivated due to AGA Membership issues! # if (!AGATDList.current(attendee.aga_id)) #   cleared = false # end # Check for minor_agreement_received
attendee
<not_specific>