From d80ac13fd0d2abf6dba879de2bc66ba3f212fc3f Mon Sep 17 00:00:00 2001 From: Alexander Walther Date: Thu, 5 Sep 2024 17:42:43 +0200 Subject: [PATCH] =?UTF-8?q?RESTful=20API=20darf=20nur=20ver=C3=B6ffentlich?= =?UTF-8?q?te=20Beitr=C3=A4ge=20zeigen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Api/Restful.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Api/Restful.php b/lib/Api/Restful.php index 84d127f..515f911 100644 --- a/lib/Api/Restful.php +++ b/lib/Api/Restful.php @@ -17,7 +17,7 @@ public static function init(): void 'path' => '/neues/entry/5.0.0/', 'auth' => '\rex_yform_rest_auth_token::checkToken', 'type' => Entry::class, - 'query' => Entry::query(), + 'query' => Entry::query()->where('status', 1, ">="), 'get' => [ 'fields' => [ Entry::class => [ @@ -105,7 +105,7 @@ public static function init(): void 'path' => '/neues/category/5.0.0/', 'auth' => '\rex_yform_rest_auth_token::checkToken', 'type' => Category::class, - 'query' => Category::query(), + 'query' => Category::query()->where('status', 1, ">="), 'get' => [ 'fields' => [ Category::class => [