From 680816b1a1c0db99661abb2d09493bcd069d4950 Mon Sep 17 00:00:00 2001 From: MarkLark86 Date: Tue, 14 Mar 2023 17:21:33 +1100 Subject: [PATCH] [TGA-41] ContentAPI: Remove default filtering by subscriber (#9) --- server/tga/content_api/items.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/tga/content_api/items.py b/server/tga/content_api/items.py index 8a048dd..8d41b5a 100644 --- a/server/tga/content_api/items.py +++ b/server/tga/content_api/items.py @@ -18,6 +18,11 @@ def _set_request_filters(self, req, filters: List[Any]): req.args["filter"] = json.dumps(req_filter) + def _is_internal_api(self): + """Override this check, to remove filtering by subscribers used when the item was published""" + + return False + def init_app(app): endpoint_name = "items"