Selaa lähdekoodia

last changes

master
Daniel 2 vuotta sitten
vanhempi
commit
b71847408c
2 muutettua tiedostoa jossa 11 lisäystä ja 1 poistoa
  1. +1
    -1
      src/client/app/tmpl/home.html
  2. +10
    -0
      src/server/server/control/TB_Server_Control_Appointment.php

+ 1
- 1
src/client/app/tmpl/home.html Näytä tiedosto

@@ -9,7 +9,7 @@
<i class="fa fa-info-circle"></i>
<%= _lc( 'HOME_GROUPS_NOT_ACTIVE_TEXT1' ) %><strong><%= groupsNotActiveString %></strong><br/>
<%= _lc( 'HOME_GROUPS_NOT_ACTIVE_TEXT2' ) %>
<a class="btn btn-sm btn-info" href="#/groups"><%= _lc( 'HOME_GROUPS_NOT_ACTIVE_BTN' ) %></a>
<a class="" href="#/groups">-> <%= _lc( 'HOME_GROUPS_NOT_ACTIVE_BTN' ) %></a>
</div>
</div>
</div>


+ 10
- 0
src/server/server/control/TB_Server_Control_Appointment.php Näytä tiedosto

@@ -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() ) )
{


Ladataan…
Peruuta
Tallenna