|
|
|
@@ -862,6 +862,11 @@ class TB_Server_Control_Appointment { |
|
|
|
throw new \Exception( 'Not visible for current session profile.' );
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( false === $appointment->isAttendableByProfile( $sessionProfile ) )
|
|
|
|
{
|
|
|
|
throw new \Exception( 'Not possible to attend by current profile.' );
|
|
|
|
}
|
|
|
|
|
|
|
|
//$attendeeData = TB_Shared_Ent_TeamData_Attendee::getWithProfileDataByAppointmentId( $appointment->id );
|
|
|
|
$attendeeData = TB_Shared_Ent_TeamData_Attendee::getByAppointmentId( $appointment->id );
|
|
|
|
$attendeeProfiles = array();
|
|
|
|
@@ -1203,6 +1208,11 @@ class TB_Server_Control_Appointment { |
|
|
|
throw new \Exception( 'Not visible by current profile.' );
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( false === $appointment->isAttendableByProfile( $sessionProfile ) )
|
|
|
|
{
|
|
|
|
throw new \Exception( 'Not possible to attend by current profile.' );
|
|
|
|
}
|
|
|
|
|
|
|
|
$status = $params->get( 'status' );
|
|
|
|
if ( !in_array( $status, TB_Shared_Ent_TeamData_Attendee::getValidStatus() ) )
|
|
|
|
{
|
|
|
|
|