diff --git a/RestControllers/searchController.php b/RestControllers/searchController.php index 74cc646..19fa0e6 100644 --- a/RestControllers/searchController.php +++ b/RestControllers/searchController.php @@ -14,6 +14,8 @@ class searchController * @url POST /user/search */ public function searchDatabase(){ + user_login_required(); + //Check if the query was specified with the request if(!isset($_POST['query'])) Rest_fatal_error(400, "Please specify search terms");