|
|
@@ -862,10 +862,12 @@ class TB_Server_Control_Appointment { |
|
|
throw new \Exception( 'Not visible for current session profile.' );
|
|
|
throw new \Exception( 'Not visible for current session profile.' );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
if ( false === $appointment->isAttendableByProfile( $sessionProfile ) )
|
|
|
|
|
|
|
|
|
$isAttendableByProfile = $appointment->isAttendableByProfile( $sessionProfile );
|
|
|
|
|
|
if ( false === $isAttendableByProfile )
|
|
|
{
|
|
|
{
|
|
|
throw new \Exception( 'Not possible to attend by current profile.' );
|
|
|
throw new \Exception( 'Not possible to attend by current profile.' );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
$appointment->v_profile_can_attend = $isAttendableByProfile;
|
|
|
|
|
|
|
|
|
//$attendeeData = TB_Shared_Ent_TeamData_Attendee::getWithProfileDataByAppointmentId( $appointment->id );
|
|
|
//$attendeeData = TB_Shared_Ent_TeamData_Attendee::getWithProfileDataByAppointmentId( $appointment->id );
|
|
|
$attendeeData = TB_Shared_Ent_TeamData_Attendee::getByAppointmentId( $appointment->id );
|
|
|
$attendeeData = TB_Shared_Ent_TeamData_Attendee::getByAppointmentId( $appointment->id );
|
|
|
|