From 7292fe3d860218a319b2d022c532bf03726578e2 Mon Sep 17 00:00:00 2001 From: Zimovchik Date: Mon, 12 Aug 2024 14:08:05 +0300 Subject: [PATCH] fix --- userdata_api/utils/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userdata_api/utils/user.py b/userdata_api/utils/user.py index 6373a0e..f1e99ca 100644 --- a/userdata_api/utils/user.py +++ b/userdata_api/utils/user.py @@ -140,8 +140,8 @@ async def get_users_info( 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 + and (not is_single_user or info.owner_id != user["id"]) ): continue if info.param not in param_dict: