Skip to content

Commit cb5dc7a

Browse files
authored
Merge pull request #98 from FriendsOfREDAXO/api-only-visible-status
RESTful API darf nur veröffentlichte Beiträge zeigen
2 parents f462f1d + d80ac13 commit cb5dc7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Api/Restful.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static function init(): void
1717
'path' => '/neues/entry/5.0.0/',
1818
'auth' => '\rex_yform_rest_auth_token::checkToken',
1919
'type' => Entry::class,
20-
'query' => Entry::query(),
20+
'query' => Entry::query()->where('status', 1, ">="),
2121
'get' => [
2222
'fields' => [
2323
Entry::class => [
@@ -105,7 +105,7 @@ public static function init(): void
105105
'path' => '/neues/category/5.0.0/',
106106
'auth' => '\rex_yform_rest_auth_token::checkToken',
107107
'type' => Category::class,
108-
'query' => Category::query(),
108+
'query' => Category::query()->where('status', 1, ">="),
109109
'get' => [
110110
'fields' => [
111111
Category::class => [

0 commit comments

Comments
 (0)