Skip to content

Commit

Permalink
Fix permission error check in BRP API query
Browse files Browse the repository at this point in the history
  • Loading branch information
remyvdwereld committed Jan 16, 2025
1 parent 0005655 commit d5c5f94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils/api_queries_brp.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_brp(queryParams, obo_access_token):
"Authorization": f"Bearer {brp_access_token}",
},
)
if response.status_code == 403 or response.url not in url:
if response.status_code == 403 or url not in response.url:
raise MKSPermissionsError()

return response.json(), response.status_code
Expand Down

0 comments on commit d5c5f94

Please sign in to comment.