From 74371c3103db535fb662eec2e9c57fd54c69d37b Mon Sep 17 00:00:00 2001 From: Ken Lippold Date: Wed, 18 Oct 2023 12:54:38 -0600 Subject: [PATCH] Removed auth check for metadata endpoint. --- core/endpoints/thing/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/endpoints/thing/views.py b/core/endpoints/thing/views.py index 64dbeef1..81a9493e 100644 --- a/core/endpoints/thing/views.py +++ b/core/endpoints/thing/views.py @@ -318,7 +318,7 @@ def update_thing_privacy(request, data: ThingPrivacyPatchBody, thing_id: UUID = @router.get( '{thing_id}/metadata', - auth=[JWTAuth(), BasicAuth()], + auth=[JWTAuth(), BasicAuth(), anonymous_auth], response={ 200: ThingMetadataGetResponse, 401: str, @@ -338,7 +338,6 @@ def get_thing_metadata(request, thing_id: UUID = Path(...)): thing = get_thing_by_id( user=request.authenticated_user, thing_id=thing_id, - require_ownership=True, raise_http_errors=True )