fix calendar table events for roles other than admin

This commit is contained in:
Winfried Mosler 2021-03-15 13:00:29 +01:00 committed by Alex Tselegidis
parent 33693af996
commit 95dfc866e1
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ class Backend_api extends EA_Controller {
$appointment['service'] = $this->services_model->get_row($appointment['id_services']);
$appointment['customer'] = $this->customers_model->get_row($appointment['id_users_customer']);
}
unset ($appointment);
$user_id = $this->session->userdata('user_id');
$role_slug = $this->session->userdata('role_slug');