diff --git a/src/client/app/tmpl/home.html b/src/client/app/tmpl/home.html
index 5ac30ac..ba22245 100644
--- a/src/client/app/tmpl/home.html
+++ b/src/client/app/tmpl/home.html
@@ -9,7 +9,7 @@
<%= _lc( 'HOME_GROUPS_NOT_ACTIVE_TEXT1' ) %><%= groupsNotActiveString %>
<%= _lc( 'HOME_GROUPS_NOT_ACTIVE_TEXT2' ) %>
- <%= _lc( 'HOME_GROUPS_NOT_ACTIVE_BTN' ) %>
+ -> <%= _lc( 'HOME_GROUPS_NOT_ACTIVE_BTN' ) %>
diff --git a/src/server/server/control/TB_Server_Control_Appointment.php b/src/server/server/control/TB_Server_Control_Appointment.php
index 37a102b..9624229 100644
--- a/src/server/server/control/TB_Server_Control_Appointment.php
+++ b/src/server/server/control/TB_Server_Control_Appointment.php
@@ -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() ) )
{