From 7c14f67740f0de6a075efef0076f42b70c6842ed Mon Sep 17 00:00:00 2001 From: Martastain Date: Fri, 17 Jan 2025 14:25:16 +0100 Subject: [PATCH] fix: do not return isManager: true when user is admin --- ayon_server/graphql/nodes/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ayon_server/graphql/nodes/user.py b/ayon_server/graphql/nodes/user.py index 04f9e60d..0709a4cc 100644 --- a/ayon_server/graphql/nodes/user.py +++ b/ayon_server/graphql/nodes/user.py @@ -61,7 +61,7 @@ def user_from_record( is_admin = data.get("isAdmin", False) is_service = data.get("isService", False) is_developer = data.get("isDeveloper", False) - is_manager = is_admin or is_service or data.get("isManager", False) + is_manager = data.get("isManager", False) is_guest = data.get("isGuest", False) user_pool = data.get("userPool")