Skip to content

Commit

Permalink
Replace usage of shadowed id variable with the local entity_id of the…
Browse files Browse the repository at this point in the history
… Request.
  • Loading branch information
kburke committed Jan 23, 2025
1 parent 95806ca commit dcc4b1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5765,7 +5765,7 @@ def _get_metadata_by_id(entity_id:str=None, metadata_scope:MetadataScopeEnum=Met
# Without token, the user can only access public collections, modify the collection result
# by only returning public datasets attached to this collection
if isinstance(user_token, Response):
forbidden_error(f"{normalized_entity_type} for {id} is not accessible without presenting a token.")
forbidden_error(f"{normalized_entity_type} for {entity_id} is not accessible without presenting a token.")
else:
# When the groups token is valid, but the user doesn't belong to HuBMAP-READ group
# Or the token is valid but doesn't contain group information (auth token or transfer token)
Expand Down

0 comments on commit dcc4b1b

Please sign in to comment.