From 4c9d634ac66f8bcf1fc1f905c07f5770eb86c5c5 Mon Sep 17 00:00:00 2001 From: Zimovchik Date: Mon, 12 Aug 2024 12:45:47 +0300 Subject: [PATCH] fix --- userdata_api/utils/user.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/userdata_api/utils/user.py b/userdata_api/utils/user.py index 1756205..6373a0e 100644 --- a/userdata_api/utils/user.py +++ b/userdata_api/utils/user.py @@ -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: