From bcf03a4b9015d4db1079252fc9b0a1cf088662d3 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Fri, 27 Oct 2023 09:01:00 +0200 Subject: [PATCH] Load the api library before using it in Unavailabilities_api_v1.php --- application/controllers/api/v1/Unavailabilities_api_v1.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/controllers/api/v1/Unavailabilities_api_v1.php b/application/controllers/api/v1/Unavailabilities_api_v1.php index 43bdbee1..1359229a 100644 --- a/application/controllers/api/v1/Unavailabilities_api_v1.php +++ b/application/controllers/api/v1/Unavailabilities_api_v1.php @@ -24,6 +24,8 @@ class Unavailabilities_api_v1 extends EA_Controller { { parent::__construct(); + $this->load->library('api'); + $this->api->auth(); $this->api->model('unavailabilities_model');