Skip to content

Commit

Permalink
Merge pull request #98 from FriendsOfREDAXO/api-only-visible-status
Browse files Browse the repository at this point in the history
RESTful API darf nur veröffentlichte Beiträge zeigen
  • Loading branch information
alxndr-w authored Sep 5, 2024
2 parents f462f1d + d80ac13 commit cb5dc7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Api/Restful.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 => [
Expand Down Expand Up @@ -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 => [
Expand Down

0 comments on commit cb5dc7a

Please sign in to comment.