From b62632a9150d9be3aa975fc7f56088f0771cf086 Mon Sep 17 00:00:00 2001 From: Hossein Date: Thu, 25 Dec 2025 17:06:45 +0000 Subject: [PATCH] Fix: User Management email column closure bug The email column in User Management was using accessorKey which gets converted to accessorFn in PgTable.jsx. This caused a closure bug where all columns captured the same accessorKey value, resulting in all users displaying the logged-in user's email address. Fix by explicitly using accessorFn to avoid the closure issue. --- web/pgadmin/tools/user_management/static/js/Users.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/pgadmin/tools/user_management/static/js/Users.jsx b/web/pgadmin/tools/user_management/static/js/Users.jsx index 1d6083774b2..c0caafcf08c 100644 --- a/web/pgadmin/tools/user_management/static/js/Users.jsx +++ b/web/pgadmin/tools/user_management/static/js/Users.jsx @@ -208,7 +208,7 @@ export default function Users({roles}) { }, { header: gettext('Email'), - accessorKey: 'email', + accessorFn: (row) => row.email ?? '', enableSorting: true, enableResizing: true, size: 200,