Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions auth-api/src/auth_api/services/authorization.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ def check_auth(**kwargs):
else:
business_identifier = kwargs.get("business_identifier", None)
org_identifier = kwargs.get("org_id", None) or user_from_context.account_id
auth = None
if business_identifier:
auth = Authorization.get_user_authorizations_for_entity(business_identifier)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

returns {}

elif org_identifier:
Expand Down
4 changes: 2 additions & 2 deletions auth-api/tests/unit/services/test_authorization.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,8 @@ def test_check_auth_system_path(
"test_desc,test_expect,additional_kwargs,is_org_member,is_entity_affiliated",
[
(
"Test UnboundLocalError (403) when no role checks provided in kwargs.",
pytest.raises(UnboundLocalError),
"Test (403) when no role checks provided in kwargs.",
pytest.raises(Forbidden),
{},
False,
False,
Expand Down
Loading