Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Zimovchik committed Aug 12, 2024
1 parent aa561e8 commit 4c9d634
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions userdata_api/utils/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,10 @@ async def get_users_info(
raise ObjectNotFound(Info, user_ids)
result = []
for info in infos:
if info.category.read_scope and (
info.owner_id != user["id"] or not is_single_user and info.category.read_scope not in scope_names
if (
info.category.read_scope
and (info.owner_id != user["id"] or not is_single_user)
and info.category.read_scope not in scope_names
):
continue
if info.param not in param_dict:
Expand Down

0 comments on commit 4c9d634

Please sign in to comment.