Skip to content

Commit

Permalink
Merge pull request #144 from hydroserver2/23-site-details-guest-access
Browse files Browse the repository at this point in the history
Removed auth check for metadata endpoint.
  • Loading branch information
kjlippold authored Oct 18, 2023
2 parents f0ed2f2 + 74371c3 commit 7f229f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/endpoints/thing/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
)

Expand Down

0 comments on commit 7f229f4

Please sign in to comment.